﻿/** {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html, body {
    min-height: 100vh;
    background-color: #fff;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}*/

#form-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    flex-wrap: wrap;
}

.illustration {
    flex: 0 0 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

    .illustration img {
        display: block;
        width: 100%;
        max-width: 700px;
        height: auto;
    }

.form-section {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.form-wrapper {
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.form-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 100px;
    position: relative;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease;
}

    input:focus, textarea:focus {
        border-color: #a435f0;
        outline: none;
    }

textarea {
    resize: vertical;
    min-height: 80px;
}

label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
    display: block;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

    .checkbox-container input {
        margin-top: 0.2rem;
    }

.age-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

    .age-options label {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 400;
        background: #f2f2f2;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .age-options input[type="radio"] {
        accent-color: #a435f0;
    }

.submit-btn {
    background-color: #a435f0;
    color: #fff;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .submit-btn:hover {
        background-color: #922ce1;
    }

.reset-btn {
    background-color: #f2f2f2;
    color: #333;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}

    .reset-btn:hover {
        background-color: #ddd;
    }

.terms {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #666;
}

    .terms a {
        color: #666;
        text-decoration: underline;
    }

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error-message {
    color: #e63946;
    font-size: 0.85rem;
    min-height: 1.2rem;
    visibility: hidden;
}

.form-group.invalid .error-message {
    visibility: visible;
}

@media (max-width: 1024px) {
    #form-container {
        flex-direction: column;
    }

    .illustration, .form-section {
        flex: 1 1 100%;
    }

        .illustration img {
            max-width: 90%;
            margin: 0 auto;
        }

    .form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-section h1 {
        font-size: 1.5rem;
    }

    .submit-btn {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .age-options {
        flex-direction: column;
        gap: 0.6rem;
    }

        .age-options label {
            width: 100%;
        }
}

/*start: _ConnectThankYou CSS*/

.thankyou-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    box-sizing: border-box;
}

.thankyou-col {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-radius: 15px;
}

    .thankyou-container {
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 40px;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        max-width: 500px;
        width: 100%;
    }

    .thankyou-container h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .thankyou-container p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .thankyou-container a {
        display: inline-block;
        padding: 12px 25px;
        background: #fff;
        color: #2575fc;
        font-weight: bold;
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.3s, color 0.3s;
    }

        .thankyou-container a:hover {
            background: #2575fc;
            color: #fff;
        }

/*ends: _ConnectThankYou CSS*/