/* --- HERO SECTION WITH BACKGROUND IMAGE --- */
.scholarships-hero-bg {
  /* Dark Green Overlay + Background Image */
  background: linear-gradient(rgba(0, 53, 43, 0.85), rgba(0, 53, 43, 0.75)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 120px 20px 180px 20px; /* Extra padding bottom for overlap */
  text-align: center;
  color: #ffffff;
  position: relative;
}

.scholarships-pill-label {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.scholarships-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.scholarships-hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- MAIN OVERLAPPING CARD --- */
.scholarships-container {
  max-width: 900px;
  margin: -100px auto 50px auto; /* Negative margin creates the overlap */
  padding: 0 15px;
  position: relative;
  z-index: 10;
}

.scholarships-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* --- TABS HEADER (Like the reference image) --- */
.scholarships-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.scholarships-tab {
  flex: 1;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: default;
  position: relative;
  transition: all 0.3s;
}

.scholarships-tab.active {
  color: var(--color-primary);
}

.scholarships-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--color-primary);
}

/* --- FORM CONTENT --- */
.scholarships-form-content {
  padding: 40px;
}

.scholarships-section-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.scholarships-section-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Radio Cards Style */
.scholarships-radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scholarships-option-input {
  display: none;
}

.scholarships-option-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 25px 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  height: 100%;
}

.scholarships-option-card:hover {
  border-color: var(--color-primary);
  background-color: #fcfcfc;
}

.scholarships-option-input:checked + .scholarships-option-card {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
  background-color: #fffaf9;
}

.scholarships-icon {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.scholarships-option-input:checked
  + .scholarships-option-card
  .scholarships-icon {
  color: var(--color-accent);
}

/* Input Fields */
.scholarships-input-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.scholarships-text-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.scholarships-text-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Navigation Buttons */
.scholarships-nav-area {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.scholarships-btn-next {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}
.scholarships-btn-next:hover {
  background-color: #e62e00;
}

.scholarships-btn-back {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  padding: 12px 35px;
  border-radius: 4px;
  font-weight: 600;
}
.scholarships-btn-back:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

/* --- RESULTS SCREEN --- */
.scholarships-results-area {
  display: none;
  padding: 40px;
}

.scholarships-result-header {
  background-color: #ecfdf5; /* Light green bg */
  border: 1px solid #d1fae5;
  color: #065f46;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.scholarships-cta-box {
  background-color: var(--color-primary);
  color: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
}

.scholarships-cta-btn {
  background-color: var(--color-accent);
  color: white;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  transition: transform 0.2s;
}
.scholarships-cta-btn:hover {
  transform: translateY(-3px);
  background-color: #ff4514;
  color: white;
}

/* Steps Visibility */
.scholarships-step-content {
  display: none;
}
.scholarships-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .scholarships-hero-title {
    font-size: 2rem;
  }
  .scholarships-radio-grid {
    grid-template-columns: 1fr;
  }
  .scholarships-tabs-header {
    display: none;
  } /* Hide tabs on mobile, maybe too cramped */
}

/* --- SECTION STYLES --- */
.scholarships-funding-section {
  padding: 80px 0;
  background-color: var(--color-bg-cream); /* Matches global cream bg */
}

/* Typography */
.scholarships-sub-title {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.scholarships-main-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.scholarships-desc {
  color: #666;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- CARD COMPONENT --- */
.scholarships-fund-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.scholarships-fund-card:hover,
.scholarships-fund-card.active-border {
  border-color: #ffccc2; /* Subtle orange border on hover/active */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

/* Icons */
.scholarships-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bg-light-orange {
  background-color: #fff0eb;
}
.bg-light-green {
  background-color: #eaf4f2;
}
.bg-light-gray {
  background-color: #f3f4f6;
}

.text-accent {
  color: var(--color-accent);
}
.text-primary {
  color: var(--color-primary);
}
.text-dark {
  color: #333;
}

/* Badges */
.scholarships-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.badge-green {
  background-color: #dcfce7;
  color: #166534;
}
.badge-orange {
  background-color: #ffedd5;
  color: #9a3412;
}
.badge-gray {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* Content */
.scholarships-card-title {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.scholarships-card-text {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* Pushes content down */
}

.scholarships-divider {
  height: 1px;
  background-color: #f0f0f0;
  margin: 20px 0;
  width: 100%;
}

/* Benefit Row */
.scholarships-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
}

.scholarships-value {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}

/* Button */
.scholarships-btn-full {
  width: 100%;
  background: transparent;
  border: 1px solid #333;
  color: #333;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.scholarships-btn-full:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* --- SECTION STYLES --- */
    .scholarships-enquiry-section {
        padding: 80px 0;
        background-color: #ffffff;
    }

    /* Typography matches previous section */
    .scholarships-sub-title {
        color: var(--color-accent);
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .scholarships-main-title {
        color: var(--color-primary);
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .scholarships-desc {
        color: #666;
        max-width: 600px;
        font-size: 1rem;
    }

    /* --- CARD CONTAINER --- */
    .scholarships-enquiry-card {
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.08);
        overflow: hidden;
        max-width: 1100px;
        margin: 0 auto;
    }

    /* --- LEFT PANEL (DARK) --- */
    .scholarships-left-panel {
        background-color: var(--color-primary);
        color: #fff;
        height: 100%;
        padding: 50px 40px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .scholarships-panel-content {
        position: relative;
        z-index: 2;
    }

    .scholarships-bg-icon {
        position: absolute;
        bottom: -30px;
        right: -30px;
        font-size: 15rem;
        color: rgba(255,255,255,0.03);
        z-index: 1;
        transform: rotate(-15deg);
    }

    /* Feature List */
    .scholarships-feature-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .scholarships-feature-list li {
        display: flex;
        align-items: center;
        margin-bottom: 25px;
        font-weight: 500;
    }

    .scholarships-feature-icon {
        width: 32px;
        height: 32px;
        background-color: var(--color-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        flex-shrink: 0;
        font-size: 0.9rem;
        color: white;
    }

    /* --- RIGHT PANEL (FORM) --- */
    .scholarships-form-panel {
        padding: 50px;
        background-color: #fff;
    }

    .scholarships-form-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #999;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }

    .scholarships-form-input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        font-size: 0.95rem;
        color: var(--text-main);
        background-color: #fafafa;
        transition: all 0.2s;
        font-family: inherit;
    }

    .scholarships-form-input:focus {
        outline: none;
        border-color: var(--color-primary);
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 53, 43, 0.1);
    }

    /* Select specific fix */
    select.scholarships-form-input {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
        appearance: none;
    }

    /* Footer Area */
    .scholarships-form-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .scholarships-btn-submit {
        background-color: var(--color-primary);
        color: white;
        border: none;
        padding: 14px 35px;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: background 0.3s;
        cursor: pointer;
    }

    .scholarships-btn-submit:hover {
        background-color: #00251e; /* Slightly darker shade */
    }

    .scholarships-btn-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    /* Status Message */
    .scholarships-status-msg {
        font-size: 0.9rem;
        font-weight: 500;
        transition: opacity 0.3s;
    }
    .status-success { color: #198754; }
    .status-error { color: #dc3545; }

    /* Responsive adjustments */
    @media (max-width: 991px) {
        .scholarships-left-panel {
            padding: 40px;
        }
        .scholarships-form-panel {
            padding: 30px;
        }
        .scholarships-form-footer {
            flex-direction: column-reverse;
            gap: 15px;
            align-items: stretch;
        }
        .scholarships-status-msg {
            text-align: center;
        }
    }