* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f0fdf4;
    color: #111827;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

.left {
    background: linear-gradient(135deg, #064e3b, #059669, #34d399);
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* Hero image at top of left panel */
.hero-image-wrap {
    width: 100%;
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.left-content {
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.brand-logo {
    height: auto;
    width: clamp(140px, 60%, 220px);
    max-width: 100%;
    margin: 0 auto 22px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.30));
    object-fit: contain;
}

.badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.left h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 14px;
}

.left p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
}

.benefits {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.benefit {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
}

.right {
    padding: 34px 28px;
}

.form-top {
    margin-bottom: 20px;
}

.form-top h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #111827;
}

.form-top p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    transition: 0.2s ease;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.radio-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-box label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
}

.radio-box input {
    width: auto;
    margin-right: 6px;
}

.cta {
    grid-column: 1 / -1;
    border: 0;
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    background: #111827;
    color: #fff;
    transition: 0.2s ease;
    margin-top: 6px;
}

.cta:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.micro-copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: -2px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.trust-item {
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Success Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 44px 36px 36px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #064e3b, #059669);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-box h3 {
    font-size: 22px;
    color: #111827;
    margin: 0 0 10px;
}

.modal-box p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 28px;
}

.modal-close {
    background: linear-gradient(135deg, #064e3b, #059669);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 13px 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.88;
}

.success-message {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 14px;
    font-weight: 700;
}

/* ── Tablet ── */
@media (max-width: 860px) {
    .wrapper {
        padding: 16px;
        align-items: flex-start;
    }

    .card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .hero-image-wrap {
        height: 220px;
    }

    .left-content {
        padding: 28px 24px 32px;
    }

    .brand-logo {
        width: clamp(120px, 50%, 200px);
    }

    .left h1 {
        font-size: 30px;
    }

    .right {
        padding: 28px 24px;
    }

    .form-top h2 {
        font-size: 24px;
    }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .wrapper {
        padding: 10px;
    }

    .card {
        border-radius: 12px;
    }

    .hero-image-wrap {
        height: 180px;
    }

    .left-content {
        padding: 20px 16px 26px;
    }

    .brand-logo {
        width: clamp(100px, 45%, 170px);
        margin-bottom: 16px;
    }

    .left h1 {
        font-size: 24px;
    }

    .left p {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .benefit {
        font-size: 13px;
        padding: 10px 13px;
    }

    .right {
        padding: 20px 14px;
    }

    .form-top h2 {
        font-size: 21px;
    }

    form {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        padding: 12px 13px;
    }

    .cta {
        font-size: 16px;
        padding: 15px;
    }

    .trust-row {
        gap: 7px;
    }

    .trust-item {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ── Small phones (iPhone SE, Galaxy A) ── */
@media (max-width: 390px) {
    .wrapper {
        padding: 0;
    }

    .card {
        border-radius: 0;
        box-shadow: none;
    }

    .brand-logo {
        width: clamp(90px, 40%, 150px);
    }

    .left h1 {
        font-size: 22px;
    }

    .right {
        padding: 16px 12px;
    }

    .form-top h2 {
        font-size: 19px;
    }
}
