* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(125deg, #EEF7FF 0, #ffffff 30%, #fbe7d3 70%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 30px 15px;
}

/* ===== WRAPPER ===== */
.form-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: auto;               /* centres vertically without clipping on short screens */
}

.section {
    width: 100%;
    display: flex;
    flex-direction: row;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

/* ===== LEFT PANEL ===== */
.leftsection {
    width: 40%;
    padding: 30px 24px;
    background-color: crimson;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px 0 0 20px;
}

.leftsection img {
    width: 40%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.form-header { text-align: center; }

.form-header span {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

/* ===== FORM ===== */
.registration-form {
    width: 60%;
    background: #fff;
    padding: 40px;
    border-radius: 0 20px 20px 0;
    border: 1px solid #e8edf5;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2em;
}

.fistrow,
.seondrow {
    flex: 1;
    min-width: 0;               /* lets inputs shrink instead of overflowing */
}

.form-group { margin-bottom: 22px; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 16px;            /* 16px stops iOS zooming into the field */
    color: #172033;
    background: transparent;
    outline: none;
    border: 0;
    border-bottom: 2px solid rgb(215, 38, 56);
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.form-group input::placeholder { color: #a2a9b5; font-size: 14px; }

.form-group input:focus {
    border: 2px solid rgb(215, 38, 56);
    border-radius: 10px;
    background: #fff;
}

/* ===== LOOKING FOR ===== */
.looking-for { margin-top: 8px; }

.main-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #273248;
    margin-bottom: 12px;
}

.options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.radio-option:hover { background: #fff3f4; }

.radio-option input {
    width: 17px;
    height: 17px;
    accent-color: rgb(215, 38, 56);
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option span {
    font-size: 13px;
    color: #424b5d;
    line-height: 1.4;
}

.radio-option:has(input:checked) { background: #fff3f4; }
.radio-option:has(input:checked) span { color: rgb(215, 38, 56); font-weight: 600; }

/* ===== SUBMIT ===== */
.registration-submit {
    width: 80%;
    min-height: 54px;
    border: none;
    border-radius: 10px;
    background: rgb(215, 38, 56);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.registration-submit:hover {
    background: #b81d2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(215, 38, 56, 0.3);
}

.registration-submit:active { transform: translateY(0); }
.registration-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.registration-submit svg { flex-shrink: 0; transition: transform 0.25s ease; }
.registration-submit:hover svg { transform: translate(3px, -3px); }

.form-message {
    text-align: center;
    font-size: 13px;
    margin-top: 14px;
    min-height: 18px;
}

/* ===== LAPTOP / SMALL DESKTOP (≤1024px) ===== */
@media (max-width: 1024px) {
    .registration-form { padding: 32px 28px; }
    .row { gap: 1.2em; }
    .form-header h2 { font-size: 26px; }
}

/* ===== TABLET (≤900px): stack panels ===== */
@media (max-width: 900px) {
    .section { flex-direction: column; }

    .leftsection {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 28px 20px;
    }

    .leftsection img { width: 110px; margin-bottom: 14px; }

    .registration-form {
        width: 100%;
        border-radius: 0 0 20px 20px;
    }
}

/* ===== MOBILE (≤600px) ===== */
@media (max-width: 600px) {
    body { padding: 16px 12px; }

    .row { flex-direction: column; gap: 0; }

    .registration-form { padding: 26px 18px; }

    .form-header h2 { font-size: 24px; }
    .form-header p  { font-size: 13px; }

    .options { flex-direction: column; flex-wrap: nowrap; }
    .radio-option { padding: 11px 10px; width: 100%; }
    .radio-option span { font-size: 13px; }

    .registration-submit { width: 100%; }
}

/* ===== SMALL MOBILE (≤380px) ===== */
@media (max-width: 380px) {
    body { padding: 10px 8px; }

    .section, .leftsection { border-radius: 16px 16px 0 0; }
    .section { border-radius: 16px; }
    .registration-form { padding: 22px 14px; border-radius: 0 0 16px 16px; }

    .leftsection { padding: 22px 14px; }
    .leftsection img { width: 90px; }

    .form-header span { font-size: 11px; letter-spacing: 1.5px; }
    .form-header h2 { font-size: 21px; }
    .form-header p  { font-size: 12.5px; }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"] { height: 46px; padding: 0 10px; }

    .radio-option { gap: 9px; padding: 10px 6px; }
    .radio-option span { font-size: 12.5px; }

    .registration-submit { font-size: 14px; min-height: 50px; }
}
