/* ── 6. REGISTRATION FORM ─────────────────────────────────────────────── */
.form-section {
  position: relative;
}

.registration-form {
  background: var(--cream-50);
  border: 1px solid rgba(180, 138, 58, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Subtle gold corner accent on the form card */
.registration-form::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid rgba(180, 138, 58, 0.14);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-900);
  letter-spacing: 0.01em;
}

.form-label svg {
  color: var(--gold-600);
  flex-shrink: 0;
}

.required {
  color: var(--error-500);
  font-weight: 600;
}

/* Inputs: cream-white background, 1.5px sage border, gold focus ring */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--green-900);
  background: var(--cream-input);
  border: 1.5px solid var(--sage-400);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder {
  color: var(--sage-400);
  opacity: 0.9;
}

input:hover,
select:hover {
  border-color: var(--gold-500);
}

input:focus,
select:focus {
  border-color: var(--gold-500);
  background: #FFFFFF;
  box-shadow: var(--shadow-gold);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error .custom-select-trigger {
  border-color: var(--error-500) !important;
  background: var(--error-50) !important;
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error .custom-select-trigger:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.error-message {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error-500);
  min-height: 18px;
  line-height: 1.4;
  margin-top: 2px;
}

.field-hint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--sage-text);
  line-height: 1.4;
}


/* ── Custom Select (Branch Dropdown) ── */
.custom-select-container {
  position: relative;
  width: 100%;
}

.visually-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-trigger {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--green-900);
  background: var(--cream-input);
  border: 1.5px solid var(--sage-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--gold-500);
}

.custom-select-container.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: var(--gold-500);
  background: #FFFFFF;
  box-shadow: var(--shadow-gold);
  outline: none;
}

.custom-select-value.placeholder {
  color: var(--sage-400);
}

.custom-select-arrow {
  color: var(--gold-600);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.custom-select-container.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--cream-50);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  padding: 6px;
}

.custom-select-container.open .custom-select-menu {
  display: block;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--green-900);
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-select-option:hover,
.custom-select-option:focus {
  background: var(--gold-100);
  color: var(--green-900);
  outline: none;
}

.custom-select-option.selected {
  background: var(--green-900);
  color: var(--gold-300);
  font-weight: 500;
}

.custom-select-option .option-check {
  color: var(--gold-500);
  display: none;
}

.custom-select-option.selected .option-check {
  display: block;
}


/* ── Phone Input Group & Custom Country Selector ── */
.phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
  width: 100%;
}

.custom-country-container {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
}

.custom-country-trigger {
  width: 100%;
  height: 100%;
  min-height: 48px;
  padding: 0 12px;
  background: var(--cream-input);
  border: 1.5px solid var(--sage-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--green-900);
  font-family: var(--font-body);
  box-sizing: border-box;
  white-space: nowrap;
}

.phone-input-group input[type="tel"],
.phone-input-group #contact_number {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.custom-country-trigger:hover {
  border-color: var(--gold-500);
}

.custom-country-container.open .custom-country-trigger,
.custom-country-trigger:focus-visible {
  border-color: var(--gold-500);
  background: #FFFFFF;
  box-shadow: var(--shadow-gold);
  outline: none;
}

.country-trigger-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.country-current-code {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-900);
  white-space: nowrap;
}

.custom-country-arrow {
  color: var(--gold-600);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.custom-country-container.open .custom-country-arrow {
  transform: rotate(180deg);
}

.custom-country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 85vw;
  background: #FFFFFF;
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.custom-country-container.open .custom-country-menu {
  display: block;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--cream-50);
  border-bottom: 1px solid var(--gold-200);
}

.country-search-icon {
  color: var(--gold-600);
  flex-shrink: 0;
}

.country-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--green-900);
  outline: none;
  padding: 0;
}

.country-search-input::placeholder {
  color: var(--sage-400);
}

.country-options-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.country-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--green-900);
}

.country-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.country-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-dial-code {
  font-weight: 600;
  color: var(--gold-700);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.country-option-item:hover,
.country-option-item:focus,
.country-option-item.highlighted {
  background: var(--gold-100);
  outline: none;
}

.country-option-item.selected {
  background: var(--green-900);
  color: #FFFFFF;
}

.country-option-item.selected .country-name {
  color: #FFFFFF;
}

.country-option-item.selected .country-dial-code {
  color: var(--gold-300);
}

.country-no-results {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--sage-text);
}

.country-code-select {
  width: auto;
  min-width: 130px;
  flex-shrink: 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F6A22' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}


/* ── Food Preference Radio Cards ── */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--cream-input);
  border: 1.5px solid var(--sage-400);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.radio-card-content:hover {
  border-color: var(--gold-500);
  background: #FFFFFF;
}

.radio-card input[type="radio"]:focus-visible + .radio-card-content {
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-500);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  background: var(--cream-50);
  border-color: var(--gold-500);
  box-shadow: 0 2px 8px rgba(180, 138, 58, 0.22);
}

/* Distinct Veg / Non-Veg Accents */
#label-food-veg input[type="radio"]:checked + .radio-card-content {
  border-color: var(--veg-green);
  background: #F2FBF5;
}
#label-food-nonveg input[type="radio"]:checked + .radio-card-content {
  border-color: #B45309;
  background: #FFFBEB;
}

.radio-emoji {
  font-size: 1.25rem;
}

.radio-label {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--green-900);
}

/* Turnstile Widget Center */
.turnstile-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 10px auto 4px !important;
  text-align: center !important;
  overflow: visible;
}

.turnstile-wrapper .cf-turnstile {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
}

.turnstile-wrapper iframe {
  margin: 0 auto !important;
  display: block !important;
}

@media (min-width: 992px) {
  .registration-form {
    padding: 38px 34px;
    box-shadow: 0 16px 44px -6px rgba(27, 59, 47, 0.12), 0 2px 14px rgba(180, 138, 58, 0.08);
  }
}

