* {
    box-sizing: border-box;
}

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

.page {
    display: grid;
    grid-template-columns: 1fr 620px;
    min-height: 100vh;
}

.hero {
    position: relative;
    background:
        linear-gradient(rgba(8, 13, 30, 0.68), rgba(8, 13, 30, 0.68)),
        url("/static/search-party-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 70px 60px;
}

.hero-content {
    position: sticky;
    top: 60px;
    max-width: 520px;
}

.logo {
    width: 82px;
    height: 82px;
    border-radius: 8px;
    background: white;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 90px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin: 0 0 30px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 560px;
}

.location {
    margin-top: 90px;
    font-weight: 700;
}

.form-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 40px;
    background: linear-gradient(90deg, #ffffff, #f7f7f7);
}

.card {
    width: 100%;
    max-width: 540px;
    background: white;
    padding: 34px;
    box-shadow: 0 14px 45px rgba(0,0,0,0.12);
}

.card h2 {
    text-align: center;
    margin: 0 0 28px;
    font-size: 25px;
}

input,
select,
textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #d4d4d4;
    font-size: 15px;
    background: #fafafa;
}

textarea {
    min-height: 135px;
    resize: vertical;
    line-height: 1.6;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #626b85;
}

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

button {
    width: 100%;
    border: none;
    background: #e74c3c;
    color: white;
    padding: 16px;
    font-size: 17px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #c0392b;
}

.result-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
}

.result-card {
    background: white;
    padding: 45px;
    width: 92%;
    max-width: 560px;
    text-align: center;
    box-shadow: 0 18px 55px rgba(0,0,0,0.35);
}

.result-card h1 {
    margin-top: 0;
}

.download-btn,
.secondary-btn {
    display: block;
    text-decoration: none;
    margin: 16px auto;
    padding: 16px;
    max-width: 320px;
    color: white;
}

.download-btn {
    background: #e74c3c;
}

.secondary-btn {
    background: #111827;
}

@media (max-width: 1000px) {
    .page {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        position: relative;
        top: auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .form-wrap {
        padding: 30px 18px;
    }

    .row {
        grid-template-columns: 1fr;
    }
}

.form-wrap {
    flex-direction: column;
}

