/**
 * NFZ Hero Section Styles
 * Sekcja hero z formularzem NFZ - zastępuje slider
 */

/* ============================================
   SEKCJA HERO
   ============================================ */

.nfz-hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    background-color: #e8eef5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.nfz-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.95) 100%);
    pointer-events: none;
}

.nfz-hero-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 30px;
    min-height: 520px;
    box-sizing: border-box;
}

/* ============================================
   KORZYŚCI (LEWA STRONA)
   ============================================ */

.nfz-hero-benefits {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nfz-benefits-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 420px;
}

.nfz-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e8eef5;
}

.nfz-benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nfz-benefit-item:first-child {
    padding-top: 0;
}

.nfz-benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0f5fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
}

.nfz-benefit-icon svg {
    width: 24px;
    height: 24px;
}

.nfz-benefit-content h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nfz-benefit-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ============================================
   FORMULARZ (PRAWA STRONA)
   ============================================ */

.nfz-hero-form-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nfz-hero-form-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    width: 380px;
}

.nfz-form-title {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ============================================
   POLA FORMULARZA
   ============================================ */

.nfz-hero-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nfz-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nfz-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.nfz-help-link {
    font-weight: 400;
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
}

.nfz-help-link:hover {
    text-decoration: underline;
}

.nfz-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.nfz-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.nfz-input::placeholder {
    color: #98a2b3;
}

.nfz-input.valid {
    border-color: #12b76a;
}

.nfz-input.invalid {
    border-color: #f04438;
}

.nfz-error {
    font-size: 12px;
    color: #f04438;
    min-height: 16px;
}

/* ============================================
   CHECKBOX ZGODA
   ============================================ */

.nfz-consent-field {
    margin-top: 4px;
}

.nfz-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.nfz-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nfz-checkmark {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.nfz-checkbox-label input:checked ~ .nfz-checkmark {
    background: #0066cc;
    border-color: #0066cc;
}

.nfz-checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.nfz-checkbox-label input:checked ~ .nfz-checkmark::after {
    display: block;
}

.nfz-consent-text {
    color: #555;
}

.nfz-consent-text a {
    color: #0066cc;
    text-decoration: none;
}

.nfz-consent-text a:hover {
    text-decoration: underline;
}

/* ============================================
   PRZYCISK SUBMIT
   ============================================ */

.nfz-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1a4fd6 0%, #0d3a9e 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.nfz-submit-btn:hover {
    background: linear-gradient(135deg, #153fc2 0%, #0a2d7a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 79, 214, 0.35);
}

.nfz-submit-btn:active {
    transform: translateY(0);
}

.nfz-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-loader .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ============================================
   KOMUNIKATY
   ============================================ */

.nfz-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}

.nfz-message.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.nfz-message.success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

/* ============================================
   SUKCES
   ============================================ */

.nfz-success {
    text-align: center;
    padding: 20px 0;
}

.nfz-success-icon {
    color: #12b76a;
    margin-bottom: 16px;
}

.nfz-success-icon svg {
    width: 56px;
    height: 56px;
}

.nfz-success h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #12b76a;
}

.nfz-success p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.nfz-reset-btn {
    padding: 12px 24px;
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nfz-reset-btn:hover {
    background: #0066cc;
    color: #fff;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1100px) {
    .nfz-hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 30px 20px;
        gap: 24px;
    }

    .nfz-hero-section {
        min-height: auto;
        background-position: center center;
    }

    .nfz-hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.95) 100%);
    }

    .nfz-benefits-box {
        max-width: 100%;
        width: 100%;
    }

    .nfz-hero-form-box {
        width: 100%;
        max-width: 500px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 576px) {
    .nfz-hero-section {
        background-position: top center;
    }

    .nfz-hero-container {
        padding: 20px 15px;
    }

    .nfz-benefits-box {
        padding: 20px;
    }

    .nfz-benefit-item {
        padding: 12px 0;
    }

    .nfz-benefit-icon {
        width: 40px;
        height: 40px;
    }

    .nfz-benefit-icon svg {
        width: 20px;
        height: 20px;
    }

    .nfz-benefit-content h3 {
        font-size: 13px;
    }

    .nfz-benefit-content p {
        font-size: 13px;
    }

    .nfz-hero-form-box {
        padding: 20px;
    }

    .nfz-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .nfz-input {
        padding: 12px 14px;
        font-size: 16px; /* Zapobiega zoom na iOS */
    }

    .nfz-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .nfz-help-link {
        display: block;
        margin-top: 4px;
    }
}

/* ============================================
   ANIMACJE
   ============================================ */

.nfz-hero-benefits,
.nfz-hero-form-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.nfz-hero-form-wrapper {
    animation-delay: 0.15s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nfz-success {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   DOMYŚLNE TŁO JEŚLI BRAK OBRAZKA
   ============================================ */

.nfz-hero-section:not([style*="background-image"]),
.nfz-hero-section[style*="background-image: url('')"] {
    background: linear-gradient(135deg, #e8eef5 0%, #d0dbe8 100%);
}
