/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Full page */
html,
body {
    width: 100%;
    min-height: 100%;
}

/* Background */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #05000f;
    background-image:
        radial-gradient(circle at 46% 52%, rgba(255, 0, 170, 0.11) 0%, rgba(255, 0, 170, 0.05) 28%, transparent 68%),
        radial-gradient(circle at 61% 58%, rgba(0, 75, 255, 0.11) 0%, rgba(0, 75, 255, 0.05) 30%, transparent 72%),
        linear-gradient(135deg, #05000f 0%, #090018 45%, #030010 100%);

    background-repeat: no-repeat;
    background-size: cover;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

/* Noise layer */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.35'/%3E%3C/svg%3E");
}

/* Main container */
.container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1200px;
    padding: 28px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

/* Logo */
.logo-link {
    display: inline-block;
}

.logo {
    width: min(72vw, 370px);
    height: auto;
    display: block;
    margin-bottom: 30px;
}

/* Main content box */
.intro-text {
    width: min(90vw, 900px);
    padding: 36px 48px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 0 30px rgba(255, 0, 170, 0.08),
        0 0 60px rgba(255, 0, 170, 0.04);

    color: rgba(255, 255, 255, 0.82);

    font-size: 17px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Wider box for posture page */
.posture-box {
    width: min(94vw, 1050px);
}

/* Lead text */
.intro-lead {
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* Paragraph spacing */
.intro-text p {
    margin-bottom: 22px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Hella text */
.hella-text {
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* CTA Button */
.cta-button {
    margin-top: 30px;
    padding: 14px 34px;

    display: inline-block;
    position: relative;
    overflow: hidden;

    border: none;
    border-radius: 10px;

    text-decoration: none;
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;

    background: linear-gradient(
        90deg,
        rgba(180, 0, 125, 0.72),
        rgba(0, 55, 190, 0.72)
    );

    box-shadow:
        0 0 10px rgba(255, 0, 170, 0.10),
        0 0 18px rgba(0, 75, 255, 0.08);

    transition: all 0.35s ease;
}

/* Light sweep */
.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.10),
        transparent
    );

    transition: all 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-2px);

    background: linear-gradient(
        90deg,
        rgba(0, 65, 210, 0.78),
        rgba(210, 0, 145, 0.78)
    );

    box-shadow:
        0 0 16px rgba(255, 0, 170, 0.18),
        0 0 26px rgba(0, 75, 255, 0.13);
}

.cta-button:hover::before {
    left: 130%;
}

/* Divider */
.certification-divider {
    width: min(88vw, 900px);
    height: 1px;

    margin-top: 38px;
    margin-bottom: 18px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 170, 0.45),
        rgba(0, 75, 255, 0.45),
        transparent
    );

    box-shadow:
        0 0 14px rgba(255, 0, 170, 0.35),
        0 0 24px rgba(0, 75, 255, 0.25);
}

/* Footer label */
.certification-label {
    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Footer logos */
.certification-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    width: 100%;
}

.cert-card {
    position: relative;
    width: 240px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card::before {
    content: "";
    position: absolute;
    inset: 10px;

    background:
        radial-gradient(circle, rgba(255, 0, 170, 0.22), transparent 62%),
        radial-gradient(circle, rgba(0, 75, 255, 0.18), transparent 70%);

    filter: blur(18px);
    opacity: 0.9;
    z-index: -1;
}

.cert-logo {
    max-height: 90px;
    max-width: 220px;
    width: auto;
    height: auto;

    object-fit: contain;
    display: block;

    opacity: 0.97;
    filter: brightness(1.08);

    transition: 0.25s ease;
}

.cert-card:hover .cert-logo {
    transform: translateY(-2px);
    filter: brightness(1.14);
}

.cert-card:hover::before {
    opacity: 1;
    filter: blur(22px);
}

/* Form layout */
.form-box {
    text-align: left;
}

.form-box .intro-lead,
.form-box > p {
    text-align: center;
}

.assessment-form {
    margin-top: 28px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row.full-width {
    grid-column: 1 / -1;
}

.form-row label {
    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 15px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.92);

    font-size: 15px;
    font-family: inherit;
    outline: none;

    transition: 0.25s ease;
}

.form-row textarea {
    min-height: 135px;
    resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(255, 0, 170, 0.35);
    background: rgba(255, 255, 255, 0.075);

    box-shadow:
        0 0 12px rgba(255, 0, 170, 0.12),
        0 0 20px rgba(0, 75, 255, 0.08);
}

.form-button {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
}

/* Success / Error Messages */
.form-message {
    width: 100%;
    margin: 20px 0 10px 0;
    padding: 16px 18px;

    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;

    text-align: center;
    letter-spacing: 0.2px;
}

.success-message {
    background: rgba(130, 70, 255, 0.10);
    border: 1px solid rgba(255, 0, 170, 0.22);
    color: rgba(235, 225, 255, 0.95);

    box-shadow:
        0 0 16px rgba(255, 0, 170, 0.10),
        0 0 24px rgba(0, 75, 255, 0.07);
}

.error-message {
    background: rgba(255, 60, 120, 0.08);
    border: 1px solid rgba(255, 60, 120, 0.22);
    color: rgba(255, 210, 225, 0.92);

    box-shadow:
        0 0 12px rgba(255, 60, 120, 0.08);
}

/* Option card assessment */
.option-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.question-block {
    width: 100%;
    text-align: left;
    padding: 22px;

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);

    background: rgba(255, 255, 255, 0.025);

    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.015);
}

.question-block h3 {
    margin-bottom: 16px;

    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.2px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.compact-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card span {
    min-height: 52px;
    padding: 13px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;

    transition: 0.25s ease;
}

.option-card span:hover {
    transform: translateY(-1px);

    border-color: rgba(255, 0, 170, 0.25);
    background:
        linear-gradient(
            135deg,
            rgba(255, 0, 170, 0.10),
            rgba(0, 75, 255, 0.08)
        );

    color: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 0 12px rgba(255, 0, 170, 0.08),
        0 0 18px rgba(0, 75, 255, 0.06);
}

.option-card input:checked + span {
    border-color: rgba(255, 0, 170, 0.55);

    background:
        linear-gradient(
            135deg,
            rgba(180, 0, 125, 0.45),
            rgba(0, 65, 210, 0.36)
        );

    color: #ffffff;

    box-shadow:
        0 0 16px rgba(255, 0, 170, 0.18),
        0 0 24px rgba(0, 75, 255, 0.12),
        inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.full-width-question textarea {
    width: 100%;
    min-height: 140px;
    margin-top: 8px;
    padding: 18px 20px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.025)
        );

    color: rgba(255, 255, 255, 0.92);

    font-size: 15px;
    font-family: inherit;
    line-height: 1.6;

    resize: vertical;
    outline: none;

    transition: 0.25s ease;
}

.full-width-question textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.full-width-question textarea:focus {
    border-color: rgba(255, 0, 170, 0.35);

    background:
        linear-gradient(
            135deg,
            rgba(255, 0, 170, 0.06),
            rgba(0, 75, 255, 0.05)
        );

    box-shadow:
        0 0 14px rgba(255, 0, 170, 0.10),
        0 0 22px rgba(0, 75, 255, 0.08);
}

/* Tablet */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }

    .container {
        padding: 26px 18px;
    }

    .logo {
        width: min(82vw, 310px);
        margin-bottom: 22px;
    }

    .intro-text {
        width: 94vw;
        padding: 26px 22px;

        font-size: 15.5px;
        line-height: 1.7;
        border-radius: 14px;
    }

    .posture-box {
        width: 94vw;
    }

    .intro-lead {
        font-size: 18px;
    }

    .intro-text p {
        margin-bottom: 18px;
    }

    .cta-button {
        margin-top: 24px;
        padding: 13px 30px;
    }

    .certification-divider {
        width: 90vw;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .certification-label {
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .certification-logos {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
        overflow: hidden;
    }

    .cert-card {
        width: min(42vw, 180px);
        height: 95px;
    }

    .cert-logo {
        max-height: 70px;
        max-width: min(38vw, 170px);
    }

    .assessment-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .option-form {
        gap: 24px;
    }

    .question-block {
        padding: 18px;
        border-radius: 14px;
    }

    .option-grid,
    .compact-options {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 420px) {
    .container {
        padding: 22px 14px;
    }

    .logo {
        width: min(86vw, 270px);
        margin-bottom: 20px;
    }

    .intro-text {
        width: 94vw;
        padding: 22px 18px;

        font-size: 14.5px;
        line-height: 1.65;
        border-radius: 12px;
    }

    .intro-lead {
        font-size: 16.5px;
    }

    .cta-button {
        margin-top: 22px;
        padding: 12px 26px;
        font-size: 14px;
    }

    .certification-divider {
        width: 92vw;
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .certification-label {
        font-size: 10px;
        letter-spacing: 1.3px;
        margin-bottom: 16px;
    }

    .certification-logos {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        overflow: visible;
    }

    .cert-card {
        width: 90vw;
        max-width: 300px;
        height: 82px;
    }

    .cert-logo {
        max-height: 58px;
        max-width: 260px;
    }

    .form-row input,
    .form-row textarea {
        padding: 13px 14px;
        font-size: 14px;
    }

    .question-block {
        padding: 16px;
    }

    .question-block h3 {
        font-size: 15px;
    }

    .option-grid,
    .compact-options {
        grid-template-columns: 1fr;
    }

    .option-card span {
        min-height: 48px;
        padding: 12px 14px;
        font-size: 13.5px;
    }
}