/* Request a Programme — 4-step wizard (typography aligned with FIPS design system) */

.fips-request-program-page {
    font-family: var(--font-primary);
    color: var(--fips-gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fips-request-program-page h1,
.fips-request-program-page h2,
.fips-request-program-page h3,
.fips-request-program-page p,
.fips-request-program-page label,
.fips-request-program-page button,
.fips-request-program-page input,
.fips-request-program-page select,
.fips-request-program-page textarea,
.fips-request-program-page .rp-form-control,
.fips-request-program-page .rp-review-row {
    font-family: inherit;
}

.rp-page-hero {
    background-image: linear-gradient(135deg, rgba(10, 56, 20, 0.92) 0%, rgba(45, 112, 64, 0.88) 100%),
        url('../images/base2.jpg');
    background-size: cover;
    background-position: center;
}

.rp-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #f4f7f4 0%, #ffffff 40%);
}

.rp-shell {
    max-width: 920px;
    margin: 0 auto;
}

.rp-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.rp-intro h2 {
    font-weight: 700;
    color: var(--fips-green-deep, #0a3814);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
    line-height: var(--line-height-tight, 1.2);
}

.rp-intro p {
    color: #5a6b5e;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--line-height-normal, 1.6);
}

/* Vertical stepper */
.rp-stepper {
    position: relative;
    padding-left: 4.5rem;
}

.rp-stepper::before {
    content: '';
    position: absolute;
    left: 1.35rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--fips-gold, #d4af37) 0%, rgba(212, 175, 55, 0.25) 100%);
}

.rp-step {
    position: relative;
    margin-bottom: 1.25rem;
}

.rp-step:last-child {
    margin-bottom: 0;
}

.rp-step-icon {
    position: absolute;
    left: -4.5rem;
    top: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--gradient-gold, linear-gradient(135deg, #d4af37 0%, #e6c547 100%));
    color: var(--fips-green-deep, #0a3814);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rp-step.is-active .rp-step-icon,
.rp-step.is-complete .rp-step-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.rp-step.is-complete .rp-step-icon {
    background: var(--gradient-green, linear-gradient(135deg, #0a3814 0%, #2d7040 100%));
    color: #fff;
}

.rp-step-card {
    background: #fff;
    border: 1px solid #e4ebe6;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rp-step.is-active .rp-step-card {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 28px rgba(10, 56, 20, 0.08);
}

.rp-step-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fips-gold, #d4af37);
    margin-bottom: 0.35rem;
}

.rp-step-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--fips-green-deep, #0a3814);
    margin: 0 0 0.35rem;
    line-height: var(--line-height-tight, 1.2);
}

.rp-step-desc {
    margin: 0;
    color: #6b7c6f;
    font-size: 0.95rem;
    line-height: var(--line-height-normal, 1.6);
}

.rp-step-panel {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2ee;
}

.rp-step.is-active .rp-step-panel {
    display: block;
    animation: rpFadeIn 0.35s ease;
}

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

/* Form fields */
.rp-form-group {
    margin-bottom: 1.1rem;
}

.rp-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #3d4f42;
    margin-bottom: 0.4rem;
}

.rp-form-label .rp-required {
    color: #b8860b;
}

.rp-form-control {
    width: 100%;
    border: 2px solid #e4ebe6;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rp-form-control:focus {
    outline: none;
    border-color: var(--fips-green-mid, #1a5c2e);
    box-shadow: 0 0 0 3px rgba(26, 92, 46, 0.12);
}

.rp-form-control.is-invalid {
    border-color: #c0392b;
}

.rp-form-hint {
    font-size: 0.82rem;
    color: #7a8b7e;
    margin-top: 0.35rem;
}

.rp-custom-wrap {
    display: none;
    margin-top: 0.75rem;
}

.rp-custom-wrap.is-visible {
    display: block;
}

/* Review summary */
.rp-review-grid {
    display: grid;
    gap: 0.65rem;
}

.rp-review-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eef2ee;
    font-size: 0.95rem;
}

.rp-review-row:last-child {
    border-bottom: none;
}

.rp-review-key {
    font-weight: 600;
    color: var(--fips-green-mid, #1a5c2e);
}

.rp-review-val {
    color: #3d4f42;
    word-break: break-word;
}

/* Actions */
.rp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e4ebe6;
}

.rp-actions--intro {
    border-top: none;
    padding-top: 0.5rem;
    margin-top: 1.5rem;
}

.fips-request-program-page .rp-actions .landing-btn {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    padding: 0.8rem 1.6rem;
}

/* Thank you */
.rp-success {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e4ebe6;
    box-shadow: 0 12px 40px rgba(10, 56, 20, 0.08);
}

.rp-success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--gradient-green, linear-gradient(135deg, #0a3814 0%, #2d7040 100%));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.rp-success h2 {
    font-weight: 700;
    color: var(--fips-green-deep, #0a3814);
    margin-bottom: 0.75rem;
}

.rp-success p {
    color: #5a6b5e;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.rp-success .landing-btn {
    text-transform: none;
    letter-spacing: 0.02em;
}

/* Wizard mode: hide inactive step descriptions in compact view */
.rp-shell[data-mode="wizard"] .rp-step:not(.is-active):not(.is-complete) .rp-step-desc {
    display: none;
}

.rp-shell[data-mode="wizard"] .rp-step:not(.is-active) .rp-step-card {
    opacity: 0.72;
}

.rp-shell[data-mode="wizard"] .rp-step.is-active .rp-step-card {
    opacity: 1;
}

@media (max-width: 768px) {
    .rp-stepper {
        padding-left: 3.5rem;
    }

    .rp-stepper::before {
        left: 1rem;
    }

    .rp-step-icon {
        left: -3.5rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }

    .rp-review-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .rp-actions {
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, transparent 0%, #f4f7f4 12%, #f4f7f4 100%);
        padding-bottom: 1rem;
        z-index: 5;
    }

    .fips-request-program-page .rp-actions .landing-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 0.4rem);
    }
}
