/* Order Form Styles - Clean & Simple */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-primary);
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  color: var(--color-text-dark);
}

.prelogin-main {
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: var(--color-bg-primary);
}

@media (max-width: 768px) {
  .prelogin-main {
    padding-top: 20px !important;
  }
}

.pagecontainer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 60px 40px;
  background-color: var(--color-bg-primary);
}

.form-container {
  width: 100%;
  background-color: var(--color-bg-primary);
}

#subscriptionForm {
  max-width: 650px;
  margin: 0 auto;
}

/* Back Button */
/* Page back button styles moved to styles.css */

/* Header */
.orderpagehead {
  margin-bottom: 50px;
  text-align: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--color-text-dark);
}

.orderpagehead h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #141414;
  margin: 0 auto 1.5rem auto;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  max-width: 1280px;
  padding: 2rem 2rem 0 2rem;
}

@media (max-width: 768px) {
  .orderpagehead h1 {
    font-size: 3rem;
    padding: 1rem 1rem 0 1rem;
  }
}

@media (max-width: 640px) {
  .orderpagehead h1 {
    font-size: 2.5rem;
    padding: 0.75rem 1rem 0 1rem;
  }
}

.orderpagehead h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-accent-yellow);
  border-radius: 2px;
}

.orderpagehead p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 850px;
  padding: 0 2rem;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 768px) {
  .orderpagehead p {
    font-size: 1rem;
    max-width: 100% !important;
    padding: 0 1.5rem !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 640px) {
  .orderpagehead p {
    font-size: 0.9375rem;
    padding: 0 1rem !important;
  }
}

.orderpagehead p strong {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.orderpagehead a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.orderpagehead a:hover {
  text-decoration: underline;
}

/* Section Headers */
.form-section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.form-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
}

.form-section-header p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Combined Order Section */
.combined-order-section {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.combined-order-section .form-group {
  margin-bottom: 24px;
  background-color: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.combined-order-section .form-group:hover {
  box-shadow: none;
  border: none;
}

.combined-order-section .form-group:last-child {
  margin-bottom: 0;
}

/* Form Groups */
.form-group {

  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.form-group.subtop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.form-group.subtop label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-group.subtop h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  width: 100%;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group.subtop select {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

/* Labels */
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.required-asterisk {
  color: #dc2626;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Inputs and Selects */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  color: var(--color-text-dark);
  background-color: var(--color-bg-primary);
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="text"]:hover,
input[type="email"]:hover {
  border-color: var(--color-border-dark);
  background-color: var(--color-bg-primary);
}

select {
  width: 100%;
  padding: 14px 50px 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  color: var(--color-text-dark);
  background-color: var(--color-bg-primary);
  transition: all 0.2s ease;
  font-weight: 500;
  min-height: 48px;
}

select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select:hover {
  border-color: var(--color-primary);
}

input::placeholder {
  color: var(--color-border-dark);
}

/* Select Styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}

select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select::-ms-expand {
  display: none;
}

/* Hide subscription type and school type initially */
#subtype {
  display: none;
}

#schooltype {
  display: none;
  padding-bottom: 24px;
}

/* School Sections */
.school-sections-container {
  background-color: var(--color-bg-secondary);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.schoolsection h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
  padding-bottom: 0;
  border-bottom: none;
}

.schooldetails,
.invoicedetails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.schooldetails .form-group,
.invoicedetails .form-group {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.schooldetails .form-group label,
.invoicedetails .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.schooldetails .form-group input,
.invoicedetails .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  background-color: var(--color-bg-primary);
  transition: all 0.2s ease;
}

.schooldetails .form-group input:focus,
.invoicedetails .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.schooldetails .form-group input:hover,
.invoicedetails .form-group input:hover {
  border-color: var(--color-border-dark);
  background-color: var(--color-bg-primary);
}

/* Invoice Top Row */
.invoice-top-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

/* Invoice Bottom Row */
.invoice-bottom-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

#financeemail {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

#financeemail label {
  margin-bottom: 8px;
}

#financeemail input {
  margin-top: 0;
}

.addressinput {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.addressinput .form-group {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.addressinput .form-group:first-child {
  margin-top: 0;
}

.addressinput .form-group:first-child label {
  margin-bottom: 8px;
}

/* Divider */
.custom-line {
  border: none;
  height: 1px;
  background-color: var(--color-border-light);
  margin: 40px 0;
}

#sameInvoicingAddressOption {
  padding-bottom: 24px;
}

#sameInvoicingAddressOption label span {
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Region Box - Now a dropdown like other sections */
/* Info Icon and Tooltip */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  color: var(--color-text-muted);
  cursor: help;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-icon:hover {
  color: var(--color-primary);
}

.info-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-text-dark);
  color: var(--color-bg-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: normal;
  width: 240px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-icon[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #1f2937;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.info-icon[data-tooltip]:hover::after,
.info-icon[data-tooltip]:hover::before {
  opacity: 1;
  visibility: visible;
}

#region {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--color-bg-secondary);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Notes */
.individualnote {
  background-color: var(--color-bg-secondary);
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}

.noteline {
  width: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.notetext {
  flex: 1;
}

.notetext h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 8px 0;
}

.notetext p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.rednote .noteline {
  background-color: #dc2626;
}

.rednote .notetext h4 {
  color: #dc2626;
}

/* School Note Styling */
#schoolnote {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

#schoolnote .noteline {
  display: none;
}

#schoolnote .notetext {
  margin: 0;
  padding: 0;
}

#schoolnote .notetext h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

#schoolnote .notetext p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

#schoolnote .notetext p strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Input with Button */
/* Password Suggestion - full width only when alone (in passwordSuggestionSection) */
#passwordSuggestionSection .schooldetails .form-group:has(.input-with-button) {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

/* Password fields with username (in login details sections) should be half width - handled by normal grid */
#schlogindetails .schooldetails .form-group:has(.input-with-button),
#indogindetails .schooldetails .form-group:has(.input-with-button) {
  grid-column: auto;
  display: block;
}

.input-with-button {
  position: relative;
  width: 100%;
}

.input-with-button input {
  padding-right: 100px;
}

.input-with-button button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.input-with-button button:hover {
  background-color: var(--color-primary-hover);
}

/* Summary Section Header */
.summary-section-header {
  display: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.summary-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Summary */
.summary {
  background-color: var(--color-bg-primary);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.order-summary {
  margin-top: 20px;
}

.order-summary h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

details {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  background-color: var(--color-bg-secondary);
}

summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "▼";
  font-size: 12px;
  transition: transform 0.2s ease;
  color: var(--color-text-muted);
}

details[open] summary::after {
  transform: rotate(-180deg);
}

.breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.row:last-child {
  margin-bottom: 0;
}

.total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  border-top: 2px solid #e5e7eb;
  padding-top: 20px;
  margin-top: 20px;
  align-items: center;
}

#international-total {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.subscription-form {
  text-align: center;
}

.subscription-form p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
}

.subscription-form select {
  width: 100%;
  max-width: 200px;
}

.item {
  display: flex;
  padding: 0 0 24px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.item:last-child {
  border-bottom: none;
}

.itemleft {
  display: flex;
  align-items: center;
  flex: 2;
  gap: 18px;
}

.itemleft img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.item-details h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.item-details h1 span {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.item-details .spec {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 8px 0;
  font-weight: 500;
}

.item-details .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
  text-align: left;
}

.itemright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-left: 1px solid #e5e7eb;
  padding-left: 20px;
}

/* Voucher section: dropdown "I have a voucher code" then input + Apply */
.voucher-section {
  margin-bottom: 16px;
}

.voucher-details {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  padding: 0 0 0 0;
  margin-bottom: 0;
  background: none;
  box-shadow: none;
}

.voucher-summary.voucher-label {
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.voucher-summary.voucher-label::-webkit-details-marker {
  display: none;
}

.voucher-summary.voucher-label::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.voucher-details[open] .voucher-summary.voucher-label::after {
  transform: rotate(180deg);
}

.voucher-dropdown-content {
  padding: 12px 0 8px 0;
}

.voucher-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voucher-row .voucher-code-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
}

.voucher-row .voucher-code-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Apply button - match submit button style */
.voucher-update-btn {
  flex-shrink: 0;
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.voucher-update-btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.voucher-update-btn:active {
  transform: translateY(0);
}

.voucher-message {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 8px 0 0 0;
  min-height: 1.25em;
}

.voucher-message.voucher-message--error {
  color: #dc2626;
  font-weight: 500;
}

/* Individual Renewal Contact Grid */
.individual-renewal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .individual-renewal-grid {
    grid-template-columns: 1fr;
  }
}

/* Validation Popup */
#validation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.validation-popup-content {
  background-color: var(--color-bg-primary);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.validation-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.validation-popup-header svg {
  color: var(--color-accent-yellow-hover);
  flex-shrink: 0;
}

.validation-popup-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  flex: 1;
}

.validation-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.validation-popup-close:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.validation-popup-body {
  padding: 24px;
}

.validation-popup-body p {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.validation-popup-body ul {
  margin: 0;
  padding-left: 24px;
  list-style: none;
}

.validation-popup-body ul li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  position: relative;
  padding-left: 24px;
}

.validation-popup-body ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent-yellow-hover);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1;
}

/* Terms and Conditions */
.tandc {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  text-align: center;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.tandc[style*="flex"],
.tandc[style*="display: flex"] {
  display: flex !important;
}

#tandccheck[type="checkbox"] {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #6b7280;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  background-color: var(--color-bg-primary);
  transition: all 0.2s ease;
}

#tandccheck[type="checkbox"]:checked {
  background-color: #10b981;
  border-color: #10b981;
}

#tandccheck[type="checkbox"]:checked::after {
  content: '✓';
  color: var(--color-bg-primary);
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: -2px;
  left: 2px;
}

.tandc label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.tandc label span {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.tandc a {
  color: var(--color-primary);
  text-decoration: none;
}

.tandc a:hover {
  text-decoration: underline;
}

/* Submit Button */
.submit {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

button[type="submit"] {
  background-color: #d1d5db;
  color: #6b7280;
  padding: 14px 60px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: not-allowed;
  transition: all 0.2s ease;
  box-shadow: none;
}

button[type="submit"]:not(:disabled) {
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

button[type="submit"]:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  background-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 1;
  position: relative;
}

/* Submit Button Tooltip */
.submit-button-tooltip {
  position: fixed;
  z-index: 10000;
  background-color: #1f2937;
  color: var(--color-bg-primary);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  pointer-events: none;
  opacity: 1;
}

.submit-button-tooltip .tooltip-content {
  font-size: 14px;
  line-height: 1.5;
}

.submit-button-tooltip .tooltip-content strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.submit-button-tooltip .tooltip-content ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.submit-button-tooltip .tooltip-content li {
  margin-bottom: 4px;
}

.submit-button-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1f2937;
}

/* Field Error Highlighting */
.field-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
  animation: errorPulse 0.5s ease;
}

.form-group.field-error input,
.form-group.field-error select,
.tandc.field-error {
  border-color: #dc2626 !important;
}

.form-group.field-error input:not([type="checkbox"]),
.form-group.field-error select {
  background-color: #fef2f2 !important;
}

.tandc.field-error {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  border-radius: 6px;
  padding: 8px;
}

.field-error-message {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  display: block;
  animation: fadeIn 0.3s ease;
}

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

@keyframes errorPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
  }
}

/* How Hear Section */
.howhear {
  margin-bottom: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.howhear h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 20px 0;
}

#howheartoggleselect .toggle-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-left: 0;
}

#howheartoggleselect .toggle-buttons .option {
  position: relative;
}

#howheartoggleselect .toggle-buttons .option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

#howheartoggleselect .toggle-buttons .option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background-color: var(--color-bg-primary);
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  text-align: center;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
}

#howheartoggleselect .toggle-buttons .option label:hover {
  border-color: var(--color-primary);
  background-color: #eff6ff;
  color: var(--color-primary);
}

#howheartoggleselect .toggle-buttons .option input[type="radio"]:checked + label {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-primary);
  font-weight: 600;
}

#howheartoggleselect .toggle-buttons .option input[type="radio"]:checked + label:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Tooltip */
.custom-tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 6px;
}

.custom-tooltip-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.custom-tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 220px;
  background-color: var(--color-text-dark);
  color: var(--color-bg-primary);
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 13px;
  white-space: normal;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-tooltip-container:hover .custom-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .pagecontainer {
    padding: 0px 15px 20px 15px;
  }

  .orderpagehead h1 {
    font-size: 2.25rem;
    padding: 1.5rem 1rem 0 1rem;
  }

  .orderpagehead p {
    padding: 0 1rem !important;
    font-size: 1rem !important;
  }

  .form-group.subtop {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group.subtop h3 {
    min-width: auto;
    margin-bottom: 12px;
  }

  .form-group.subtop select {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .schooldetails,
  .invoicedetails {
    grid-template-columns: 1fr;
  }

  .invoice-top-row {
    grid-template-columns: 1fr;
  }

  .region-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .region-box h3 {
    margin-bottom: 12px;
  }

  .toggle-buttons {
    width: 100%;
    margin-left: 0;
  }

  .toggle-buttons label {
    flex: 1;
    min-width: auto;
  }

  #howheartoggleselect .toggle-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .item {
    flex-direction: column;
  }

  .itemright {
    border-left: none;
    border-top: 1px solid #e5e7eb;
    padding-left: 0;
    padding-top: 20px;
    margin-top: 20px;
  }

  /* Terms and Conditions - Responsive */
  .tandc {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 1rem;
  }

  .tandc label {
    justify-content: flex-start;
  }

  .tandc label span {
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    flex: 1;
    min-width: 200px;
  }

  #tandccheck[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .orderpagehead h1 {
    font-size: 3rem;
  }

  #howheartoggleselect .toggle-buttons {
    grid-template-columns: 1fr;
  }

  button[type="submit"] {
    width: 100%;
  }

  /* Terms and Conditions - Small screens */
  .tandc {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 0 0.5rem;
    margin-bottom: 20px;
  }

  .tandc label span {
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
  }

  #tandccheck[type="checkbox"] {
    margin-top: 2px;
  }
}
