
:root {
    --apex-black: var(--main-bg, #0b0b0b); 

    --apex-dark: #141414; 
    
    --apex-border: #2a2a2a;
    --apex-border-hover: rgba(155, 28, 28, 0.5);
    --apex-red: #c82d2d;
    --apex-red-hover: #9f2020;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.2s ease-in-out;
}

body {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-x: clip !important; 
}


#gym-survey-section {
    position: relative;
    width: 100%;
    background: transparent; 
    padding: 4rem 0 6rem 0;
    z-index: 1;
}

.apex-slashes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; 
    overflow: hidden;
}

.slash {
    position: absolute;
    background-color: var(--apex-red);
    transform: skewX(-30deg);
    opacity: 0.03; 
}

.slash-1 {
    width: 250px;
    height: 150%; 
    top: -25%;
    left: 5%;
    animation: slashPulse 6s infinite alternate ease-in-out;
}

.slash-2 {
    width: 60px;
    height: 150%;
    top: -25%;
    left: 28%;
    animation: slashPulse 4s infinite alternate ease-in-out 1s;
}

.slash-3 {
    width: 400px;
    height: 150%;
    top: -25%;
    right: -10%;
    animation: slashPulse 8s infinite alternate ease-in-out 2s;
}

@keyframes slashPulse {
    0% { 
        opacity: 0.02; 
        transform: skewX(-30deg) translateX(0); 
    }
    100% { 
        opacity: 0.05; 
        transform: skewX(-30deg) translateX(20px); 
    }
}

#gym-survey-section * {
    box-sizing: border-box;
}

#gym-survey-section .container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* -NAGŁÓWEK I SEKCJA KORZYŚCI */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-white);
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: var(--apex-red);
    border-radius: 2px;
}

.hero-section h1 span {
    color: var(--apex-red);
}

.hero-section > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-family: var(--font-body);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.benefit-card {
    background: var(--apex-dark);
    border: 1px solid var(--apex-border);
    padding: 1.5rem;
    border-radius: 4px;
    border-top: 3px solid var(--apex-red);
}

.benefit-card h3 {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-card h3 span {
    color: var(--apex-red);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-body);
    margin: 0;
}

.benefit-price {
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.benefit-price strong {
    color: #c82d2d;
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
    text-shadow: 0 0 22px rgba(200, 45, 45, 0.28);
}

.benefit-price small {
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.online-price-disclaimer {
    margin: 0.75rem;
    color: rgba(255, 255, 255, 0.48);
    font-family: var(--font-body, "Poppins", sans-serif);
    font-size: 0.1rem;
    line-height: 1.55;
}

/* FORMULARZ I SEKCJE */
form {
    display: grid;
    gap: 3rem;
}

fieldset {
    background: var(--apex-dark);
    border: 1px solid var(--apex-border);
    border-left: 4px solid var(--apex-red);
    padding: 2.5rem 2rem;
    border-radius: 4px;
}

legend {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-white);
    padding: 0 1rem 0 0;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 1px;
    font-weight: 700;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

/* POLA INPUT */
.field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative; 
}

.grid-2 .field-group {
    margin-bottom: 0;
}

.field-group label {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.field-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="range"]),
.field-group textarea,
.field-group select {
    width: 100%;
    background: var(--apex-black);
    border: 1px solid var(--apex-border);
    color: var(--text-white);
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.field-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-bottom: 2rem; 
}

/*  LICZNIKI ZNAKÓW  */
.char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    pointer-events: none;
}

/*  ANIMACJE HOVER NA INPUTACH */
.field-group input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="range"]):hover,
.field-group textarea:hover,
.field-group select:hover {
    border-color: var(--apex-border-hover);
    background-color: #090909;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-color: var(--apex-red);
    background-color: #0e0e0e;
}

/*  CHECKBOXY I RADIO */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--apex-black);
    border: 1px solid var(--apex-border);
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.option-label:hover {
    border-color: #444;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    background: transparent;
    position: relative;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
}

.option-label input[type="radio"] { border-radius: 50%; }
.option-label input[type="checkbox"] { border-radius: 4px; }

.option-label input:checked {
    border-color: var(--apex-red);
}

.option-label input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    background: var(--apex-red);
    border-radius: 50%;
}

.option-label input[type="checkbox"]:checked::after {
    content: "✓"; 
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    color: var(--apex-red);
    font-size: 18px;
    font-weight: 900;
}

.option-label:has(input:checked) {
    border-color: var(--apex-red);
    color: var(--text-white);
}

/* RANGE  */
.range-wrapper {
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 600;
}

.range-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--apex-red);
    line-height: 1;
    font-style: italic;
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--apex-border);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 26px;
    height: 26px;
    background: var(--apex-red);
    cursor: pointer;
    border-radius: 50%; 
    border: 3px solid var(--text-white);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/*  POLA WARUNKOWE JS */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}

.conditional-field.show {
    max-height: 250px;
    opacity: 1;
    margin-top: 1rem;
}

/*  UPLOAD ZDJĘĆ  */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--apex-border);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--apex-black);
    cursor: pointer;
    display: block;
    margin-top: 1.5rem;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.file-upload-wrapper:hover {
    border-color: var(--apex-red);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.optional-badge {
    display: inline-block;
    background: var(--apex-border);
    color: var(--text-white);
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.rodo-box {
    background: var(--apex-dark);
    border: 1px solid var(--apex-border);
    border-left: 4px solid var(--apex-red); 
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: -1rem; 
}

.rodo-box .option-label {
    border: none;
    background: transparent;
    padding: 0;
    align-items: flex-start;
}

.rodo-box .option-label:hover {
    border-color: transparent;
}

.rodo-box .option-label span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-family: var(--font-body);
}

.rodo-box .option-label a {
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--apex-red);
    transition: color 0.2s;
}

.rodo-box .option-label a:hover {
    color: var(--apex-red);
}

.rodo-box.group-error {
    border-color: var(--apex-red) !important;
    box-shadow: 0 0 0 2px rgba(200, 45, 45, 0.25);
}

.error {
    display: none;
    align-items: center;
    gap: .5rem;
    color: #ffffff;
    font-weight: 600;
    margin: .5rem 0 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.error::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 8v5' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16' r='1.2' fill='%23ff6b6b'/%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z' stroke='%23ff6b6b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.error.show {
    display: flex;
}

.field-error input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="range"]),
.field-error textarea,
.field-error select {
    border-color: var(--apex-red) !important;
    box-shadow: 0 0 0 2px rgba(200, 45, 45, 0.25);
}

.group-error .option-label {
    border-color: var(--apex-red) !important;
}

.file-error .file-upload-wrapper {
    border-color: var(--apex-red) !important;
    box-shadow: 0 0 0 2px rgba(200, 45, 45, 0.25);
}

.form-general-error {
    background: rgba(200, 45, 45, 0.15);
    border: 1px solid var(--apex-red);
    border-left: 4px solid var(--apex-red);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin: 0 0 1rem;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 1.2rem;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    font-style: italic;
    
    color: var(--apex-red);
    background: transparent;
    border: 3px solid var(--apex-red);
    border-radius: 4px;
    
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--apex-red);
    color: var(--text-white);
    box-shadow: 0 0 25px rgba(211, 17, 17, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    fieldset { padding: 2rem 1.2rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .options-grid { grid-template-columns: 1fr; } /* Stack checkboxów na mobile */
}