/* -----------------------------------
   Layout Wrapper (Card Layout)
----------------------------------- */
.scb-wrapper {
  max-width: 1200px;
  display: flex !important;
  flex-direction: row !important;
  gap: 40px;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .scb-wrapper {
    flex-direction: column !important;
    padding: 20px;
  }
}

/* -----------------------------------
   Form Card (Bulletproof Version)
----------------------------------- */
#scb-form {
  flex: 1;
  background: #1F7A8C !important;
  min-height: 800px;
  background: #ffffff;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);

  /* No grid. No auto-row collapse. */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inputs + Selects */
#scb-form input,
#scb-form select {
  width: 100%;
  display: block;

  /* FIX: Prevent clipping */
  height: 54px;
  min-height: 54px;
  line-height: 1.4;

  padding: 14px;
  border-radius: 12px;
  border: 1px solid #DDE7E7;
  background: #ffffff;
  font-size: 15px;
  box-sizing: border-box;

  /* FIX: Prevent hidden overflow */
  overflow: visible !important;
}

/* Focus State */
#scb-form input:focus,
#scb-form select:focus {
  border-color: #F47825;
  box-shadow: 0 0 0 3px rgba(21,193,159,0.15);
  outline: none;
}

/* Submit Button */
#scb-form button {
  padding: 16px 28px;
  background: #F47825;
  color: #fff;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
}

#scb-form button:hover {
  background: #F47825;
  transform: translateY(-2px);
}

/* -----------------------------------
   Calendar Card
----------------------------------- */
#scb-calendar {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  min-height: 550px;
}

/* -----------------------------------
   FullCalendar Custom Colors
----------------------------------- */
.fc .fc-toolbar-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
}

.fc .fc-button-primary {
  background:  #F47825;
  border: none;
  border-radius: 10px;
}

.fc .fc-button-primary:hover {
  background: #E97618;
}

.fc-daygrid-day.fc-day-today {
  background: #E8FFF9 !important;
  border-radius: 10px;
}

.fc-event {
  border: none !important;
  border-radius: 10px;
  padding: 2px 4px;
  color: #fff !important;
  font-weight: 600;
}

.fc-daygrid-day-number {
  font-weight: 600;
  color: #333;
}

/* -----------------------------------
   Popup Overlay
----------------------------------- */
#scb-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#scb-popup.scb-popup-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Popup Box */
.scb-popup-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 30px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.scb-popup-content h2 {
  margin-bottom: 10px;
  color: #15C19F;
}

.scb-popup-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 24px;
  background: #15C19F;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.scb-popup-btn:hover {
  background: #0FAE8F;
}

.scb-redirect-note {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.7;
}