.form-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-height: 80vh;
    background: #fff;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(3, 34, 74, 0.10);
    margin: 3rem auto;
    max-width: 1000px;
    position: relative;
}

.form-container .image {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background: url('../images/logo.png') center center/cover no-repeat, #fffbd0;
    min-width: 320px;
    min-height: 420px;
    z-index: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.form-container .form {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2.5rem 2rem;
    z-index: 2;
}

.form-container .form form {
    width: 100%;
    max-width: 370px;
    background: transparent;
}

.form-container h3 {
    text-align: center;
    color: #F79743;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-group .row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.form-group .name {
    flex: 1 1 50%;
}

.form-group .name p,
.form-group .other-info p {
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #03224A;
    font-size: 1.1rem;
}

.form-group .box {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 0.7rem;
    border: 1.5px solid #F79743;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    background: #fffbd0;
    color: #03224A;
    transition: border 0.2s;
}

.form-group .box:focus {
    border: 1.5px solid #03224A;
    outline: none;
}

.form-group .button {
    width: 100%;
    padding: 0.9rem 0;
    background: #F79743;
    color: #fff;
    border: none;
    border-radius: 0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s;
}

.form-group .button:hover {
    background: #03224A;
    color: #F79743;
}

.form-group .terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0.7rem 0 1.2rem 0;
    color: #03224A;
}

.form-group a {
    color: #F79743;
    text-decoration: underline;
    font-weight: 600;
}

.form-group a:hover {
    color: #03224A;
}

@media (max-width: 900px) {
    .form-container {
        flex-direction: column;
        min-height: 100vh;
        max-width: 100vw;
        height: 100vh;
        position: relative;
        overflow: hidden;
    }
    .form-container .image {
        min-height: 220px;
        max-height: auto;
        width: 100%;
        height: 320px;
        justify-content: center;
        align-items: flex-end;
        background: url('../images/background.png') center center/cover no-repeat, #fffbd0;
    }
    .form-container .form {
        width: 100%;
        padding: 2rem 1rem;
        background: rgba(255, 251, 208, 0.85);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        z-index: 2;
        border-radius: 1.2rem;
        box-shadow: 0 4px 24px rgba(3, 34, 74, 0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        max-height: 100vh;
    }
    .form-container .form form {
        background: rgba(255, 255, 255, 0.92);
        border-radius: 1.2rem;
        padding: 1.2rem 0.7rem;
        box-shadow: 0 2px 12px #03224A22;
        max-height: 90vh;
        overflow-y: auto;
    }
    .form-group .row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .form-container {
        border-radius: 0.7rem;
        margin-top: 60px;
        height: 100vh;
        min-height: 100vh;
    }
    .form-container .form {
        padding: 0.5rem 0.2rem;
        max-height: 100vh;
    }
    .form-container .form form {
        padding: 0.7rem 0.2rem;
        max-height: 90vh;
    }
    .form-group .box {
        font-size: 1rem;
        padding: 0.5rem 0.7rem;
    }
}