/* Formularz Ankiety - Fundacja Świadomy Medyk */

.ankieta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ankieta-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ankieta-header {
    margin-bottom: 30px;
}

.ankieta-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ankieta-header p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.ankieta-header p strong {
    color: #2c3e50;
    font-size: 18px;
}

.ankieta-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.ankieta-section:last-of-type {
    border-bottom: none;
}

.ankieta-section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.ankieta-question {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.5;
}

.ankieta-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Skala NPS */
.nps-scale {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nps-option {
    flex: 1;
    min-width: 50px;
    max-width: 70px;
}

.nps-option input[type="radio"] {
    display: none;
}

.nps-label {
    display: block;
    width: 100%;
    padding: 12px 8px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
}

.nps-label:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.ankieta-container .nps-option input[type="radio"]:checked + .nps-label {
    background: #f91c3d !important;
    background-color: #f91c3d !important;
    border-color: #f91c3d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(249, 28, 61, 0.3) !important;
}

.nps-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.nps-label-left,
.nps-label-right {
    font-style: italic;
}

/* Pole tekstowe */
.ankieta-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.ankieta-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ankieta-container .ankieta-textarea:focus {
    outline: none !important;
    border-color: #f91c3d !important;
    box-shadow: 0 0 0 3px rgba(249, 28, 61, 0.1) !important;
}

.ankieta-textarea::placeholder {
    color: #adb5bd;
}

/* Przycisk */
.ankieta-container .ankieta-submit {
    text-align: center;
    margin-top: 30px;
}

.ankieta-container .ankieta-form .ankieta-button,
.ankieta-container button.ankieta-button,
.ankieta-container .ankieta-button[type="submit"] {
    background: #f91c3d !important;
    background-color: #f91c3d !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
}

.ankieta-container .ankieta-form .ankieta-button:hover,
.ankieta-container button.ankieta-button:hover,
.ankieta-container .ankieta-button[type="submit"]:hover {
    background: #d0162f !important;
    background-color: #d0162f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(249, 28, 61, 0.4) !important;
}

.ankieta-container .ankieta-form .ankieta-button:active,
.ankieta-container button.ankieta-button:active,
.ankieta-container .ankieta-button[type="submit"]:active {
    transform: translateY(0) !important;
    background: #d0162f !important;
    background-color: #d0162f !important;
}

.ankieta-container .ankieta-form .ankieta-button:disabled,
.ankieta-container button.ankieta-button:disabled,
.ankieta-container .ankieta-button[type="submit"]:disabled {
    background: #6c757d !important;
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Komunikat */
.ankieta-container .ankieta-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.ankieta-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ankieta-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsywność */
@media (max-width: 768px) {
    .ankieta-container {
        /* max-width: 100%; */
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin-left: -36px !important;
        margin-right: -36px !important;
        width: calc(100% + 72px) !important;
    }

    .ankieta-form {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .ankieta-header h2 {
        font-size: 20px;
    }

    .ankieta-question {
        font-size: 16px;
    }

    .nps-scale {
        gap: 5px;
    }

    .nps-option {
        min-width: 40px;
        max-width: 50px;
    }

    .nps-label {
        padding: 10px 5px;
        font-size: 14px;
    }

    .ankieta-button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ankieta-container {
        padding: 5px;
        margin-left: -36px !important;
        margin-right: -36px !important;
        width: calc(100% + 72px) !important;
    }

    .ankieta-form {
        padding: 15px 10px;
    }

    .nps-scale {
        gap: 3px;
    }

    .nps-option {
        min-width: 35px;
        max-width: 40px;
    }

    .nps-label {
        padding: 8px 3px;
        font-size: 12px;
    }
}

/* Honeypot field - całkowicie ukryte */
input[name="website"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
