@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #1c223c; 
    --bg-body-light: #f4f5f8; /* Darker off-white so the white box explicitly pops */
    --text-primary: #333;
    --text-muted: #888;
    --text-light: #fff;
    --text-footer: #aab2bd;
    --border-color: #ddd;
    --hover-link: #c3002f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body-light); /* This forces the white box to be clearly defined */
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

/* HEADER */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e1e4e8; /* Makes header strictly delimited */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px; /* Increased header height */
}

.logo img {
    height: 35px; /* Reduced from 55px to fit the header better */
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #666;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    padding: 10px 0;
}

.nav-menu a i {
    font-size: 11px;
    margin-left: 3px;
    color: #999;
}

.nav-menu a:hover {
    color: var(--hover-link);
}

/* SUBMENU STYLES */
.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none; /* Removed !important to allow hover state to toggle it */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 2000; /* Higher z-index */
    border: 1px solid #eee;
    text-align: left;
    pointer-events: none; /* Prevent accidental triggers */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #555 !important;
    display: block !important;
    text-align: left !important;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--hover-link) !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-customer, .btn-auth {
    position: relative; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-customer span, .btn-auth span {
    position: relative;
    z-index: 3;
}

.btn-customer::before, .btn-auth::before {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.btn-customer:hover, .btn-auth:hover {
    color: #fff !important;
    border-color: #ff0000 !important;
}

.btn-customer:hover::before, .btn-auth:hover::before {
    transform: scale(100); /* Large scale to cover all button sizes */
}

.btn-customer {
    background-color: #1e1d2d;
    color: #fff;
    border: 1px solid #1e1d2d;
    padding: 6px 18px; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: 600; 
}

.srac-logo {
    height: 50px;
}

/* TOP BANNER */
.page-top-banner {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 80px 0 180px; /* ENORMOUS BOTTOM PADDING so the box overlap is mathematically perfect */
}

.page-top-banner h1 {
    font-size: 56px; /* Matched to 3.5rem in theme.css */
    font-weight: 400;
    margin-bottom: 5px;
}

.page-top-banner h2 {
    font-size: 30px; /* Matched to ~1.875rem */
    font-weight: 400;
    color: #eee;
}

/* MAIN CONTENT WITH OVERLAPPING BOX */
.main-content {
    background-color: transparent;
    padding-bottom: 100px;
}

.content-container {
    background-color: #ffffff; /* PURE WHITE BOX */
    margin-top: -120px; /* EXTREME NEGATIVE MARGIN: This grabs the box and explicitly hurls it UP on top of the blue banner. */
    border: 1px solid #eaeaea; /* Ensure border is unmistakable */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* Strong shadow to force the white box to be 3D over the background */
    border-radius: 4px;
    padding: 50px 60px; /* Proper padding for the form */
    position: relative;
    z-index: 10;
}

/* FORM CONTENT */
.security-notice {
    color: #555;
    font-size: 14px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.login-form {
    max-width: 500px;
    margin: 0; 
}

.form-group {
    margin-bottom: 35px;
}

.form-group input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #777;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: transparent;
    outline: none;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    border-bottom-color: #111;
}

.form-links {
    text-align: right;
    margin-bottom: 35px;
    margin-top: -15px;
}

.form-links a {
    color: #666;
    font-size: 14px;
    text-decoration: underline;
}

.form-links a:hover {
    color: var(--hover-link);
}

.form-submit {
    text-align: center;
}

.btn-auth {
    background-color: rgba(1, 164, 121, 0.1); 
    color: #2f2f41; 
    border: 1px solid #c3002f; 
    padding: 12px 30px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-footer);
    padding: 60px 0 40px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: #fff;
    font-size: 28px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.company-desc {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--text-footer);
    border-radius: 4px;
    color: var(--text-footer);
}

.social-icons a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.links-col ul li {
    margin-bottom: 10px;
}

.links-col ul li a {
    color: var(--text-footer);
    font-size: 13px;
}

.links-col ul li a:hover {
    color: #fff;
}

.contact-col p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-col a {
    color: var(--text-footer);
}
.contact-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.bottom-menu {
    display: flex;
    gap: 20px;
}

.bottom-menu a {
    color: var(--text-footer);
}

.bottom-menu a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* PAYMENT & VERIFICATION COMPONENTS */
.status-icon {
    font-size: 80px;
    margin: 40px auto 20px;
    display: block;
    text-align: center;
}

.status-success { color: #28a745; }
.status-danger { color: #dc3545; }
.status-warning { color: #ffc107; }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #c3002f;
    animation: spin 1s ease-in-out infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.card-icons img {
    height: 30px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card-icons img.active {
    filter: grayscale(0);
    opacity: 1;
}

.pin-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 40px 0;
}

.pin-input-container input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Richer shadow for better visibility */
    transition: all 0.3s ease;
}

.pin-input-container input:focus {
    border-color: #c3002f;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.2);
}

.verification-subtext {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.badge-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0.7;
}

.centered-content {
    text-align: center;
}

/* CHECKOUT STEPPER - MODERN & PROFESSIONAL */
.checkout-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 30px auto 40px;
    position: relative;
    padding: 0 40px;
    gap: 120px;
}

.checkout-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 80px;
    right: 80px;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
}

.step-icon {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node.active .step-icon {
    border-color: #c3002f;
    color: #c3002f;
    box-shadow: 0 0 15px rgba(195, 0, 47, 0.15);
    background-color: #fff;
}

.step-node.completed .step-icon {
    background-color: #c3002f;
    border-color: #c3002f;
    color: #fff;
}

.step-label {
    font-size: 11px;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.step-node.active .step-label {
    color: #1c223c;
}

/* PROFESSIONAL VERIFICATION CARD */
.verification-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border-radius: 2px; /* Sharper, more professional corners */
    padding: 60px 80px;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.verification-symbol {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-symbol i {
    font-size: 60px;
    color: #1c223c;
}

.signal-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #c3002f;
    border-radius: 50%;
    animation: signal 2s infinite ease-out;
    opacity: 0;
}

@keyframes signal {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* BANNER-LESS LAYOUT ADJUSTMENTS */
.bannerless-main {
    padding-top: 50px !important;
    background-color: #fbfcff;
    min-height: calc(100vh - 100px - 250px);
}

.bannerless-main .content-container {
    margin-top: 0;
}
