/* CARD */
.access-card {
    position: relative;
    width: 70vw;
    max-width: 900px;
    min-width: 600px;
    min-height: unset;
    padding: 40px;
    border-radius: 18px;
    background: var(--card);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.access-request-submitting-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
}

.access-request-submitting-overlay[hidden] {
    display: none;
}

.submitting-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(11, 79, 138, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: submitting-spin 0.8s linear infinite;
}

@keyframes submitting-spin {
    to {
        transform: rotate(360deg);
    }
}

/* HEADER CONTAINER */
.access-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);  /* ✅ subtle divider */
}

/* ICON */
.access-header i {
    font-size: 34px;

    background: linear-gradient(135deg, #e3ecff, #cfe3ff);
    color: #1f4e8c;

    padding: 10px;
    border-radius: 50%;

    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* TITLE */
.access-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f4e8c;

    letter-spacing: 0.3px;
}

/* SUBTITLE */
.access-sub {
    font-size: 14px;
    color: #475569;

    margin-top: 3px;
}

.step-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.step-bar::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #cbd5e1;
}

/* ✅ dynamic green progress (optional advanced) */
.step-bar.progress-2::before {
    background: linear-gradient(to right, #16a34a 50%, #cbd5e1 50%);
}

.step-bar.progress-3::before {
    background: #16a34a;
}

/* STEP */
.step {
    position: relative;
    text-align: center;
    z-index: 2;
}

/* CIRCLE */
.step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;

    border-radius: 50%;
    background: white;
    border: 2px solid #cbd5e1;

    margin: 0 auto;
    font-size: 14px;
    color: #64748b;
}

/* ACTIVE */
.step.active span {
    background: var(--primary);
    color: white;
    border: none;
}

/* LABEL */
.step-label {
    margin-top: 5px;
    font-size: 13px;
    color: #64748b;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* SECTION */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    color: #1f4e8c;
    margin-bottom: 15px;
}

.terms-confirmation {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-size: 14px;
}

.terms-confirmation label {
    color: #1e293b;
    cursor: pointer;
    font-size: 16px;
}

.request-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.request-message.error {
    background: #ffe5e5;
    color: #c62828;
}

.request-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.access-card .request-success-copy {
    color: #475569;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* layout rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-input:hover {
    border-color: #94a3b8;
}

.form-actions {
    display: flex;
    justify-content: flex-end;   /* ✅ move both buttons to right */
    gap: 20px;                  /* ✅ space between buttons */
    margin-top: 25px;
    align-items: center;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 42px;
    border-radius: 10px;
    border: 1px solid #d1d9e6;
    background: #f9fbff;
    font-size: 14px;
    color: #1e293b;
	margin-bottom: 15px;
    transition: all 0.25s ease;
	display: flex;
    align-items: center; 
}

/* focus glow */
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.20);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 20px;
    background: var(--btn-red);
    color: var(--surface);
    border: 1px solid rgba(232, 240, 254, 0.2);
    border-radius: 0;
    font-family: 'Material Icons';
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #ba0c2f;
}

.return-home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 20px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 0;
    color: #1e293b;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-cancel:hover {
    background: #f1f5f9;
}

.input-error {
    border: 2px solid #ef4444 !important;  /* ✅ clean red border */
    background-color: transparent !important;  /* ✅ remove inner red */
}

.btn-primary:disabled {
    background: #cbd5e1;    /* grey */
    cursor: not-allowed;
    box-shadow: none;
}

/* ✅ completed step (green) */
.step.completed span {
    background: #1f4e8c;   /* green */
    color: white;
    border: none;
}

.step.completed .step-label {
    color: #1f4e8c;
}

/* ✅ line also green */
.step.completed::after {
    background: #1f4e8c;
}

.center-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* ✅ CHANGE from center */
    min-height: 100vh;
    padding-top: 60px;
}

.input-group {
    position: relative;
}

/* ICON POSITION */
.input-icon {
    position: absolute;
    left: 12px;

    top: 50%;
    transform: translateY(-50%);

    font-size: 20px;
    line-height: 1;          /* ✅ FIX misalignment */
    display: flex;
    align-items: center;     /* ✅ center inside */
    justify-content: center;

    color: #94a3b8;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
}

@media (max-width: 768px) {
    .center-layout {
        padding-top: 32px;
    }

    .access-card {
        width: 100%;
        min-width: 0;
        padding: 24px;
    }

    .access-header {
        align-items: flex-start;
        gap: 12px;
    }

    .access-title {
        font-size: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .btn-primary,
    .form-actions .btn-cancel {
        width: 100%;
    }
}
