* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background-color: #f6f6f6;
    z-index: -1;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas: 
        "image brand"
        "image content";
    gap: 0 40px;
    align-items: start;
}

.col-image {
    grid-area: image;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.brand {
    grid-area: brand;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    max-width: 320px;
    margin-bottom: 20px;
}

.brand h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #555;
    line-height: 1.3;
}

.col-content {
    grid-area: content;
    padding-top: 50px;
    padding-bottom: 60px;
}

.text-content h2 {
    font-size: 1.45rem;
    font-weight: 500;
    color: #666;
    line-height: 1.4;
    margin-bottom: 30px;
}

.text-content p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    line-height: 1.7;
    margin-bottom: 20px;
}

.desktop-only {
    display: inline;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.btn {
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-red {
    background-color: #f74d53;
}

.btn-green {
    background-color: #51af45;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin-bottom: 30px;
    width: 100%;
}

footer {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 850px) {
    .bg-top {
        height: 320px; 
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 25px;
    }

    .desktop-only {
        display: none;
    }

    .brand {
        height: 250px;
        padding-top: 30px;
        padding-bottom: 10px;
        align-items: center;
    }

    .logo {
        max-width: 260px;
        margin: 0 auto 20px auto;
    }

    .brand h1 {
        font-size: 1.4rem;
    }

    .col-image {
        padding-top: 0;
        margin-bottom: 20px;
        margin-top: -10px; /* Pull the image slightly up into the grey area */
    }

    .hero-image {
        max-width: 260px; 
    }

    .col-content {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .text-content h2 {
        font-size: 1.35rem;
        margin-bottom: 25px;
    }

    .text-content p {
        font-size: 1rem;
        margin-bottom: 18px;
        color: #333;
    }

    .buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 35px;
        margin-bottom: 40px;
    }

    .btn {
        width: 100%;
        padding: 16px 30px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #51af45;
    box-shadow: 0 0 0 3px rgba(81, 175, 69, 0.15);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 15px;
    margin-top: 10px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
    }
}
