/* ===== APPLY PAGE ===== */
/* Hero fix - same pattern as other pages */
#hero {
  min-height: 350px;
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
}

/* Push content below the absolute header */



/* Hero */


/* Form wrapper */
.apply-section {
  background: #f5f7fa;
  padding: 60px 20px 80px;
}

.apply-container {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(50,86,114,0.10);
  padding: 48px 52px;
}

/* Section label */
.apply-group-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgb(50, 86, 114);
  margin-bottom: 16px;
  padding-left: 2px;
}

/* Divider */
.apply-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #dde3ea, transparent);
  margin: 28px 0;
}

/* Fields */
.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.apply-row.single {
  grid-template-columns: 1fr;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply-field label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
}

.apply-field label span {
  color: #e53e3e;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid #dde3ea;
  border-radius: 12px;
  outline: none;
  color: #2d3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  border-color: rgb(50, 86, 114);
  box-shadow: 0 0 0 3px rgba(50,86,114,0.10);
}

.apply-field input.is-error,
.apply-field select.is-error {
  border-color: #e53e3e;
}

.apply-field .field-error {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 2px;
}

.apply-field .field-hint {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 2px;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgb(50,86,114);
  pointer-events: none;
}

/* Input with unit suffix */
.input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix-wrap input {
  padding-right: 50px;
}

.input-suffix {
  position: absolute;
  right: 14px;
  font-size: 13px;
  color: #a0aec0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  pointer-events: none;
}

/* Custom title box */
#custom_title_wrapper {
  display: none;
  margin-top: 16px;
}

/* File input */
.apply-field input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}

/* Submit button — matches .h-button style */
.apply-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: rgb(50, 86, 114);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 8px;
}

.apply-submit-btn:hover {
  background: #1e3d5c;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(50,86,114,0.25);
}

.apply-submit-btn i {
  font-size: 18px;
}

/* Success box */
.apply-success {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.apply-success i {
  font-size: 28px;
  color: #22c55e;
  flex-shrink: 0;
}

.apply-success .msg-title {
  font-weight: 700;
  font-size: 15px;
  color: #15803d;
  margin-bottom: 3px;
}

.apply-success .msg-sub {
  font-size: 13px;
  color: #166534;
  opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .apply-container {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .apply-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .apply-hero #h-text h1 {
    font-size: 20px;
  }

  .apply-hero #h-text p {
    font-size: 13px;
    line-height: 22px;
  }

  .apply-submit-btn {
    font-size: 14px;
    height: 46px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .apply-container {
    padding: 36px 32px;
  }
}

/* Fix hero background on apply page */
#hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 350px;
  display: flex;
  align-items: center;
}
