@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --ap-brand-blue: #003d7a;
    --ap-brand-gold: #FFD700;
    --ap-light-bg: #f5f8fa;
    --ap-white: #ffffff;
    --ap-text-dark: #003d7a;
    --ap-text-muted: #64748b;
    --ap-border-light: #e2e8f0;
    --ap-font-main: 'Outfit', sans-serif;
}

.admission-portal-wrapper {
    background-color: var(--ap-light-bg);
    min-height: 100vh;
    font-family: var(--ap-font-main);
    color: var(--ap-text-dark);
}

/* Header Bar */
.ap-top-header {
    background-color: var(--ap-brand-blue);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--ap-brand-gold);
}

.ap-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ap-header-logo {
    height: 40px;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.ap-header-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ap-top-header a {
    transition: color 0.3s;
}

.ap-top-header a:hover {
    color: var(--ap-brand-gold) !important;
    opacity: 1 !important;
}

/* Progress Tracker */
.ap-progress-tracker {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ap-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.ap-step.active {
    opacity: 1;
}

.ap-step-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
}

.ap-step.active .ap-step-number {
    background: var(--ap-brand-gold);
    border-color: var(--ap-brand-gold);
    color: var(--ap-brand-blue);
}

.ap-step-label {
    font-weight: 500;
}

.ap-step-divider {
    width: 30px;
    height: 1px;
    background: rgba(255,255,255,0.2);
}

/* Form Container */
.ap-form-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 60px 80px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 5px solid var(--ap-brand-blue);
}

.ap-form-title-section {
    text-align: center;
    margin-bottom: 50px;
}

.ap-form-title {
    font-size: 2.5rem;
    color: var(--ap-brand-blue);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.ap-form-subtitle {
    color: var(--ap-text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Styling */
.ap-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.ap-section-icon {
    width: 44px;
    height: 44px;
    background: #fffdf5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-brand-blue);
    font-size: 1.1rem;
    border: 1.5px solid var(--ap-brand-gold);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
}

.ap-section-title {
    font-size: 1.35rem;
    color: var(--ap-brand-blue);
    font-weight: 700;
    margin: 0;
}

.ap-sub-section-title {
    font-size: 0.9rem;
    color: var(--ap-brand-blue);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--ap-border-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
.ap-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--ap-text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ap-input-group {
    margin-bottom: 30px;
}

.ap-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--ap-border-light);
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--ap-brand-blue);
    transition: border-color 0.3s;
}

.ap-input:focus {
    outline: none;
    border-bottom: 1.5px solid var(--ap-brand-blue);
}

.ap-input::placeholder {
    color: #ccc;
    font-size: 1rem;
}

select.ap-input {
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.585 2.59 6 6l3.415-3.41L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

/* Submit Button */
.ap-submit-btn {
    background: var(--ap-brand-blue);
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 30px;
}

.ap-submit-btn:hover {
    background: var(--ap-brand-gold);
    color: var(--ap-brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .ap-form-container {
        margin: 0;
        padding: 30px 20px;
    }
    .ap-top-header {
        padding: 15px 20px;
    }
    .ap-progress-tracker {
        display: none;
    }
}

/* Review Step Styling */
.ap-hidden {
    display: none !important;
}

.ap-review-section {
    background: #fdfdfd;
    border: 1px solid var(--ap-border-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--ap-brand-blue);
}

.ap-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ap-review-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.ap-review-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ap-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ap-review-value {
    display: block;
    font-size: 1.05rem;
    color: var(--ap-text-dark);
    font-weight: 600;
}

.ap-secondary-btn {
    background: transparent;
    color: var(--ap-brand-blue);
    border: 2px solid var(--ap-brand-blue);
    padding: 13px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 30px;
    margin-right: 15px;
}

.ap-secondary-btn:hover {
    background: var(--ap-brand-blue);
    color: white;
}

.ap-step.completed .ap-step-number {
    background: #4BB543;
    color: white;
    border-color: #4BB543;
}
