/* Mandatory fields notice above form */
.enroll-form-mandatory-notice {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--text-white);
  text-align: center;
}

.enroll-form-subheading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 4px 0;
  text-align: center;
}

.enroll-form-subdesc {
  font-size: 0.95rem;
  color: var(--text-white);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.55;
}

/* Blue gradient image: full width of content, no horizontal crop */
.enroll-content .features-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 0px 20px 24px 20px;
  margin-bottom: 24px;
}

.program-setup-section {
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.enroll-content .feature-card {
  position: relative;
  z-index: 1;
  flex: 0 0 calc((100% - 120px) / 3);
  min-width: 180px;
}

.gradient-corner-enroll {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translate(-50%, -15%);
  height: 120%;
  max-width: none;
  max-height: none;
  display: block;
  pointer-events: none;
  opacity: 0.8;
  z-index: 0;
}

.enroll-content .feature-card .description-title {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 0 10px 4px;
}

.enroll-content {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* Enroll form section */
.enroll-form-section {
  width: 100%;
  max-width: 750px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.enroll-form-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.enroll-form-section .enroll-row {
  display: flex;
  gap: 10px;
}

.enroll-form-section .enroll-row input {
  flex: 1;
  min-width: 0;
}

.enroll-form-section input[type="text"],
.enroll-form-section input[type="email"],
.enroll-form-section input[type="url"],
.enroll-form-section input[type="tel"],
.enroll-form-section textarea {
  width: 100%;
  padding: 8px 12px;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  outline: none;
  color: var(--text-white);
  font-size: 1rem;
}

.enroll-form-section input::placeholder,
.enroll-form-section textarea::placeholder {
  color: var(--text-gray);
}

.enroll-form-section input:focus,
.enroll-form-section textarea:focus {
  border-color: var(--gray-medium);
}

.enroll-form-section textarea {
  min-height: 102px;
  max-height: 102px;
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-white) var(--text-black);
}

/* Squared scrollbar for bio textarea */
.enroll-form-section textarea::-webkit-scrollbar {
  width: 10px;
  border-radius: 0;
}

.enroll-form-section textarea::-webkit-scrollbar-track {
  background: var(--text-black);
  border: solid 2px var(--text-white);
  border-radius: 0;
}

.enroll-form-section textarea::-webkit-scrollbar-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--text-white);
  border: none;
  border-radius: 0;
}

.enroll-form-section textarea::-webkit-scrollbar-thumb:hover,
.enroll-form-section textarea::-webkit-scrollbar-thumb:active {
  border-radius: 0;
}

.enroll-input-wrap {
  position: relative;
  width: 100%;
}

.enroll-input-wrap input {
  width: 100%;
  min-height: 4rem;
  padding: 8px 12px;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  outline: none;
  color: var(--text-white);
  font-size: 1rem;
}

.enroll-input-wrap input:focus {
  border-color: var(--gray-medium);
}

.enroll-input-placeholder {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 1rem;
  pointer-events: none;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

.enroll-input-wrap.has-value .enroll-input-placeholder {
  display: none;
}

.enroll-or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.enroll-upload-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  cursor: pointer;
}

.enroll-upload-wrap:focus-within {
  border-color: var(--gray-medium);
}

.enroll-upload-placeholder {
  color: var(--text-gray);
  font-size: 1rem;
  pointer-events: none;
  text-align: left;
}

.enroll-upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-white);
  pointer-events: none;
}

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

.enroll-form-section .enroll-upload-wrap input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* Custom dropdown (Province / City) */
.enroll-dropdown {
  position: relative;
  flex: 1;
  min-width: 0;
}

.enroll-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  color: var(--text-gray);
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

.enroll-dropdown-trigger:focus {
  border-color: var(--gray-medium);
}

.enroll-dropdown-trigger.has-value {
  color: var(--text-white);
}

.enroll-dropdown-trigger.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.enroll-dropdown-trigger.is-open {
  border-color: var(--gray-medium);
}

.enroll-dropdown-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.enroll-dropdown-trigger.is-open .enroll-dropdown-chevron {
  transform: rotate(180deg);
}

.enroll-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  background-color: var(--text-black);
  border: solid 2px var(--text-white);
  border-top: none;
  scrollbar-width: thin;
  scrollbar-color: var(--text-white) var(--text-black);
}

.enroll-dropdown-panel.is-open {
  display: block;
}

.enroll-dropdown-panel::-webkit-scrollbar {
  width: 10px;
  border-radius: 0;
}

.enroll-dropdown-panel::-webkit-scrollbar-track {
  background: var(--text-black);
  border-radius: 0;
}

.enroll-dropdown-panel::-webkit-scrollbar-thumb {
  background: var(--text-white);
  border: none;
  border-radius: 0;
}

.enroll-dropdown-search {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  padding: 8px 12px;
  background-color: var(--text-black);
  border: none;
  border-bottom: solid 1px rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.enroll-dropdown-search::placeholder {
  color: var(--text-gray);
}

.enroll-dropdown-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.enroll-dropdown-option:hover,
.enroll-dropdown-option:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.enroll-dropdown-option.is-selected {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Contact number with +1 prefix */
.enroll-phone-wrapper {
  display: flex;
  align-items: stretch;
  border: solid 2px var(--text-white);
  background-color: var(--text-black);
}

.enroll-phone-prefix {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text-white);
  font-size: 1rem;
  background-color: transparent;
  border-right: solid 2px var(--text-white);
}

.enroll-form-section .enroll-phone-wrapper input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
}

.enroll-form-section .enroll-phone-wrapper input:focus {
  border: none;
  outline: none;
}

/* T&C checkboxes block */
.enroll-tnc-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.enroll-form-section .enroll-tnc-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--text-white);
  font-size: 0.9rem;
  text-align: left;
}

.enroll-tnc-block input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid var(--text-white);
  background-color: var(--text-black);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

.enroll-tnc-block input[type="checkbox"]:checked {
  background-color: var(--text-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.tnc-link {
  color: var(--text-white);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.tnc-link:hover {
  opacity: 0.7;
}

/* Form submission feedback message */
.enroll-form-message {
  padding: 10px 14px;
  font-size: 0.95rem;
  text-align: center;
}

.enroll-form-message--error {
  color: #ff4d4d;
  border: 2px solid #ff4d4d;
}

.enroll-form-message--success {
  color: #4dff88;
  border: 2px solid #4dff88;
}

.enroll-form-section .enroll-submit-wrap {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.enroll-form-section button[type="submit"] {
  border: 1px solid var(--text-white);
  padding: 5px 25px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--text-white);
  color: var(--text-black);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.enroll-form-section button[type="submit"]:hover {
  background-color: transparent;
  color: var(--text-white);
}

/* Laptop: tighter gap for smaller screens */
@media (max-width: 1200px) {
  .enroll-content .features-section {
    gap: 30px;
  }

  .enroll-content .feature-card {
    flex: 0 0 calc((100% - 60px) / 3);
  }
}

/* Mobile: vertical stacking for feature cards and form */
@media (max-width: 768px) {
  .gradient-corner-enroll {
    top: 10%;
    left: 130%;
    transform: translate(-50%, -15%) rotate(229deg);
    height: 70%;
  }

  .enroll-content .features-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 0 24px;
    margin-bottom: 16px;
  }

  .enroll-content .feature-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .program-setup-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .enroll-form-section {
    padding: 0 16px;
  }

  .enroll-form-mandatory-notice {
    text-align: center;
    font-size: 0.65rem;
  }

  .enroll-form-section .enroll-row {
    flex-direction: column;
  }

  .enroll-form-section button[type="submit"] {
    padding: 14px 32px;
    font-size: 1.25rem;
  }
}
