:root {
    --night-sky: #0b0c22;
    --deep-violet: #1d1036;
    --lioness-purple: #6a3fb5;
    --wisteria-gold: #d4af37;
    --soft-white: #f2ecfa;
    --glass: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(212, 175, 55, 0.35);
    --input-bg: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--night-sky);
}

body {
    display: block;
    margin: 0;
    padding: 3rem 1rem;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, var(--deep-violet), var(--night-sky) 60%) no-repeat;
    color: var(--soft-white);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.5;
}

/* The glass card */
#wrap-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Banner */
.title-wrap {
    width: 100%;
}

.title-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hides text visually but keeps it for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#description {
    margin: 1.5rem 2rem 0;
    text-align: center;
    font-size: 1.1rem;
}

#survey-form {
    width: 100%;
    padding: 1rem 2rem 2.5rem;
    text-align: center;
}

h2,
h3 {
    font-family: "Lora", Georgia, serif;
    color: var(--wisteria-gold);
    margin: 1.5rem 0 0.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

hr {
    border: none;
    height: 1px;
    margin: 2rem 0 0.5rem;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* Name, Email, Phone */
.info-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.info-container label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
.textarea-box {
    width: 100%;
    padding: 0.75rem;
    font-size: 16px;
    font-family: inherit;
    color: var(--soft-white);
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

input::placeholder,
.textarea-box::placeholder {
    color: rgba(242, 236, 250, 0.55);
}

input:focus,
.textarea-box:focus {
    outline: none;
    border-color: var(--wisteria-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

/* Checkboxes and radio rows */
.checkbox-group,
.rating-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}

.checkbox-group label,
.rating-group label {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--wisteria-gold);
    width: 1.1rem;
    height: 1.1rem;
    vertical-align: middle;
}

.scale-key {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Testimonial permission */
.permission-container {
    margin: 1rem 0 1.5rem;
}

.permission-container label {
    cursor: pointer;
    font-weight: 600;
}

.optional {
    font-weight: 400;
    opacity: 0.7;
}

.container-txtarea {
    margin: 14px 0;
    padding: 0;
    color: aliceblue;
}

.textarea-box {
    min-height: 110px;
    resize: vertical;
}

/* Submit button */
#submit {
    margin-top: 2rem;
    padding: 0.85rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: "Lora", Georgia, serif;
    color: var(--night-sky);
    background-color: var(--wisteria-gold);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Thank You Page */
.thank-you-content {
    padding: 2rem 2rem 2.5rem;
    text-align: center;
}

.thank-you-content p {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.home-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: "Lora", Georgia, serif;
    color: var(--night-sky);
    background-color: var(--wisteria-gold);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Phones */
@media screen and (max-width: 480px) {
    body {
        padding: 1rem 0.5rem;
    }

    #survey-form {
        padding: 1rem 1.25rem 2rem;
    }

    #description {
        margin: 1.25rem 1.25rem 0;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.05rem;
    }
}