:root {
    --primary-blue: #0033A0;
    --primary-pink: #FFC2CA;
    /* Adjusted to match hero image background */
    --primary-gold: #C5A548;
    --text-dark: #2D2D2D;
    --text-light: #FFFFFF;
    --bg-light: #F4F6F9;
    --font-stack: 'Roboto',
        sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: #FFFFFF;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: #000;
    padding: 0.8rem 2rem;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    /* Adjusted height to match screenshot proportion */
    width: auto;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: #C5A548;
    border-radius: 50%;
}

.segment-switch {
    background: #333;
    border-radius: 20px;
    padding: 2px;
    display: flex;
}

.segment-btn {
    padding: 0.3rem 1rem;
    border-radius: 18px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.segment-btn.active {
    background: #A6C8FF;
    color: #000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-login {
    background: white;
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: var(--primary-pink);
    border-radius: 0 0 30px 30px;
    padding-top: 4rem;
    /* More space on top */
    padding-bottom: 0;
    /* Removing bottom padding to align image to bottom */
    position: relative;
    overflow: hidden;
    height: 500px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1000px;
    /* Tighter container as per screenshot */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically center */
    padding: 0 1rem;
    height: 100%;
}

.header-content {
    flex: 1;
    max-width: 45%;
    /* Give text enough space but not too much */
    z-index: 2;
    padding-right: 2rem;
    padding-bottom: 2rem;
    /* visually center text better */
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.header-title {
    font-size: 4rem;
    font-weight: 900;
    /* Extra bold */
    margin-bottom: 1rem;
    color: #000;
    /* Reverted to black */
    /* Use brand blue instead of black */
    line-height: 1.1;
    letter-spacing: -1px;
    /* Tighter layout for punchier look */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle depth */
}

.header-desc {
    font-size: 1.1rem;
    color: #333;
}

.header-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* Align image to bottom */
    position: relative;
    max-width: 50%;
    height: 100%;
}

.header-image img {
    width: auto;
    max-height: 90%;
    /* Scale nicely */
    object-fit: contain;
    margin-bottom: -1rem;
    /* Push slightly down to cut off bottom if needed or sit flush */
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Info Section */
.info-section {
    display: flex;
    gap: 4rem;
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 2px;
    /* slight border effect? no, use bg */
    overflow: hidden;
    margin-bottom: 4rem;
}

.info-image {
    flex: 1;
    min-height: 400px;
}

/* Navbar styles were missing in the previous cat output or need to be ensured? 
   Wait, the `cat` showed they were NOT there. I need to add them. 
   Ah, I see lines 27 start with Header. The navbar styles I added in Step 122 must have been lost or not shown? 
   Wait, Step 122 replaced content but maybe I overwrote it or the `cat` didn't show it?
   Actually, looking at the previous `view_file` (Step 144), lines 1-25 are variables/reset/body. Line 27 starts Header. 
   The Navbar CSS is MISSING from the current file content! I must have made a mistake in previous edits or it got overwritten.
   I need to add the Navbar styles back AND fix the images.
*/

/* Navbar */
.navbar {
    background-color: #000;
    padding: 0.8rem 2rem;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: #C5A548;
    border-radius: 50%;
}

.segment-switch {
    background: #333;
    border-radius: 20px;
    padding: 2px;
    display: flex;
}

.segment-btn {
    padding: 0.3rem 1rem;
    border-radius: 18px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.segment-btn.active {
    background: #A6C8FF;
    color: #000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-login {
    background: white;
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Validating Image Styles */
.info-image img {
    width: 100%;
    /* Let height adjust naturally to avoid stretching */
    height: auto;
    min-height: 100%;
    object-fit: cover;
    /* Cover is usually best for "filling" a side, but if user says deformed, let's try to be safer */
    border-radius: 20px 0 0 20px;
}

.footer-image img {
    /* If the user image is portrait and container is landscape, cover crops headers/feet. 
       If we want to avoid "deformation" (stretching), we just need to ensure aspect ratio is kept.
       'object-fit: cover' DOES preserve aspect ratio. 
       'deformation' usually means stretching. 
       Maybe the user means they are pixels? Or maybe the previous file didn't have object-fit?
       The `cat` showed `object-fit: cover` was there. 
       I will set height to auto to be safe.
    */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on faces usually at top */
}

.info-content {
    flex: 1;
    padding: 3rem 2rem 3rem 0;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.info-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #002270;
}

.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab {
    padding-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.tab-content p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.value-box {
    background-color: #E8F0FE;
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.value-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

/* Confirmation Section */
.confirmation-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.confirmation-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.confirmation-text p {
    margin-bottom: 1.5rem;
    color: #444;
}

/* Verification Section */
.verification-section {
    margin-bottom: 6rem;
}

.verification-heading {
    margin-bottom: 3rem;
}

.verification-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    max-width: 400px;
}

.verification-cards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: #E6F0FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p,
.card a {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.card a {
    color: var(--primary-blue);
    font-weight: 500;
}

.requirements-list {
    margin-top: 3rem;
    padding-left: 0;
    list-style: none;
}

.requirements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.requirements-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer Banner */
.footer-banner {
    background-color: var(--primary-blue);
    border-radius: 20px;
    color: white;
    display: flex;
    overflow: hidden;
    min-height: 400px;
}

.footer-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-btn {
    background-color: white;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
}

.footer-image {
    flex: 1;
    position: relative;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {

    /* Navbar Mobile */
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    .btn-login {
        width: 100%;
        text-align: center;
    }

    /* Header Mobile - Side by Side layout */
    header {
        height: auto;
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 0;
        border-radius: 0 0 25px 25px;
    }

    .header-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        height: auto;
        min-height: 450px;
        /* Taller container to fit big image */
        padding: 0 1rem;
        gap: 0;
        overflow: hidden;
        /* clean cut */
    }

    .header-content {
        flex: 1;
        width: 100%;
        margin-bottom: 0;
        padding-right: 0;
        z-index: 3;
        /* Above image */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .header-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.05;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .header-desc {
        font-size: 1rem;
        text-align: left;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    /* Target the inline style button added in index.php */
    .header-content .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-top: 1rem !important;
        align-self: flex-start;
    }

    .header-image {
        flex: 1;
        width: 100%;
        height: 350px;
        margin-top: -2rem;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        overflow: visible;
    }

    .header-image img {
        width: auto;
        height: 120%;
        /* Restore original satisfied size */
        max-width: none;
        margin-right: -20rem;
        /* Restore original satisfied position */
        margin-bottom: 0;
        object-fit: contain;
        object-position: bottom right;
    }

    /* Main Content Mobile */
    main {
        margin: 0 auto;
        padding: 0 1rem;
    }

    .info-section {
        flex-direction: column;
        gap: 0;
    }

    .info-image {
        width: 100%;
        min-height: 250px;
        order: -1;
    }

    .info-image img {
        border-radius: 20px 20px 0 0;
    }

    .info-content {
        padding: 2rem 1.5rem;
    }

    .info-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .tab {
        white-space: nowrap;
    }

    /* Confirmation Section Mobile */
    .confirmation-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Verification Section Mobile */
    .verification-section {
        margin-bottom: 3rem;
    }

    .verification-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .verification-heading h2 {
        max-width: 100%;
        text-align: center;
        font-size: 1.8rem;
    }

    /* Footer Banner Mobile */
    .footer-banner {
        flex-direction: column;
        min-height: auto;
    }

    .footer-content {
        padding: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer-btn {
        align-self: center;
    }

    .footer-image {
        height: 250px;
    }
}

/* Vigilado Badge - moved to footer */
.site-footer {
    background-color: #000;
    color: #888;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Blue Footer */
.blue-footer {
    background-color: #0033A0;
    /* Corporate Blue */
    color: white;
    padding: 4rem 1rem 6rem 1rem;
    position: relative;
    font-size: 0.9rem;
}

.blue-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-legal-section {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.footer-select {
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    min-width: 200px;
}

.legal-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.vigilado-container img {
    height: 40px;
    /* Adjust based on image aspect ratio */
    width: auto;
}

.aval-logo {
    height: 60px;
    /* Adjust based on image */
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure it's white if it's not already */
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-legal-section {
        flex-direction: column;
        gap: 2rem;
    }

    .social-icons {
        justify-content: center;
    }
}

.footer-main-logo {
    height: 60px;
    /* Large size */
    /* If the uploaded logo is blue, it might not show well on blue bg.
       The screenshot shows it light blue/white.
       I might need to use a filter if it's dark blue.
       Assuming the uploaded footer_logo_banco.png was light blue.
       If not, I will apply a brightness filter. */
    filter: brightness(200%);
}

.vigilado-blue-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vigilado-blue-footer img {
    height: 70px;
    filter: brightness(0) invert(1);
    /* Ensure it's white on blue */
    opacity: 0.8;
}

/* Floating Help Button */
.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #F8D347;
    /* Yellow */
    color: #0033A0;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    font-size: 0.95rem;
}

.footer-legal p {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.vigilado-footer {
    height: 80px;
    /* Constrain height */
}

.vigilado-footer img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Slightly clearer to show blur better */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s;
    font-family: var(--font-stack);
}

.modal-header {
    background-color: #f8f9fa;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.modal-icon img {
    height: 60px;
    width: 60px;
    /* Square container */
    object-fit: cover;
    /* Crop the image */
    object-position: 100% 50%;
    /* Focus on the right side where the icon is */
    transform: scale(1.2);
    /* Slight zoom to cut off any potential text overlap */
}

.modal-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.modal-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f1f1f1;
}

.btn-confirm {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.btn-confirm:hover {
    background: #002270;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}