/* Hero Section Wrapper */
.hero-wrapper {
    background-color: #ece5c6;
    padding-bottom: 2rem;
}

/* Przezroczyste tło dla parallax-dots */
body.parallax-dots .hero-wrapper {
    background-color: transparent;
}

.hero-wrapper .container {
    position: relative;
}

.hero-wrapper .particles-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    pointer-events: none;
}

.hero-wrapper .hero-section {
    position: relative;
    z-index: 1;
}

/* Form Container - tło takie same jak reszta strony */
.form-container {
    padding: 40px;
    border-radius: 10px;
    margin-top: 0;
    margin-bottom: 3rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #ece5c6;
}

/* Przezroczyste tło dla parallax-dots */
body.parallax-dots .form-container {
    background-color: transparent;
}

/* Zakomentowane - tło z obrazkiem */
/*
.form-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../resources/img/photos/form_back.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(3px);
    z-index: -1;
}
*/

.form-sign {
    background-color: rgba(236, 229, 198, 0.98);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Progress bar */
.progress-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.progress-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.progress-step.active .progress-step-circle {
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    border-color: #ad1739;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .progress-step-circle {
    background: #d4a574;
    border-color: #d4a574;
    color: white;
}

.progress-step-label {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .progress-step-label {
    color: #ad1739;
    font-weight: 600;
}

/* Kroki formularza */
.form-step {
    display: none;
    animation: fadeSlideIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

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

/* Karty wyboru */
.selection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Na większych ekranach grid 2x2 */
@media (min-width: 992px) {
    .selection-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Na małych ekranach wszystkie karty w kolumnie */
@media (max-width: 768px) {
    .selection-cards {
        grid-template-columns: 1fr;
    }
}

.selection-card {
    background: linear-gradient(145deg, #FAF7F2 0%, #F5EDE0 100%);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ad1739, #d4a574);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.selection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(173, 23, 57, 0.2);
}

.selection-card:hover::before {
    transform: scaleX(1);
}

.selection-card.selected {
    border-color: #ad1739;
    background: linear-gradient(145deg, #fff5f5 0%, #ffe9e9 100%);
    transform: translateY(-5px);
}

.selection-card.selected::before {
    transform: scaleX(1);
}

.selection-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.selection-card-title {
    font-family: "PP Acma Bold", sans-serif;
    font-size: 1.3rem;
    color: #ad1739;
    text-align: center;
    margin-bottom: 0.5rem;
}

.selection-card-description {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Opcje checkboxów jako karty */
.checkbox-options {
    margin-top: 1.5rem;
    padding: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkbox-options.show {
    max-height: 2000px;
    opacity: 1;
    padding: 2rem;
    overflow-x: hidden;
    overflow-y: visible;
}

.checkbox-options h4 {
    font-family: "PP Acma Bold", sans-serif;
    color: #ad1739;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.checkbox-options-description {
    color: #666;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.checkbox-options .form-control {
    margin-top: 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.option-card {
    position: relative;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(173, 23, 57, 0.15);
    border-color: #ad1739;
}

.option-card.selected {
    background: linear-gradient(145deg, #fff5f5 0%, #ffe9e9 100%);
    border-color: #ad1739;
    border-width: 3px;
}

.option-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-card-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #999;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-card.selected .option-card-checkbox {
    background: #ad1739;
    border-color: #ad1739;
}

.option-card-checkbox svg {
    width: 16px;
    height: 16px;
    stroke: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card.selected .option-card-checkbox svg {
    opacity: 1;
}

.option-card-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.option-card.selected .option-card-label {
    font-weight: 600;
    color: #ad1739;
}

/* Ukryj prawdziwe checkboxy w opcjach */
.checkbox-options .form-check {
    display: none;
}

/* Przycisk toggle dla drugiej kategorii */
.toggle-category-btn {
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.toggle-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(173, 23, 57, 0.3);
}

/* Przyciski nawigacji */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.btn-prev, .btn-next {
    padding: 0.875rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-prev {
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    color: white;
}

.btn-prev:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(173, 23, 57, 0.3);
}

.btn-next {
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(173, 23, 57, 0.3);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Podsumowanie */
.summary-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.summary-section h4 {
    font-family: "PP Acma Bold", sans-serif;
    color: #ad1739;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #ad1739;
    margin-bottom: 0.25rem;
}

.summary-value {
    color: #333;
}

/* Checkbox zgody */
.consent-checkbox {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.consent-checkbox:has(input:checked) {
    border-color: #28a745;
    border-width: 3px;
    background: #f9f9f9;
}

.consent-checkbox .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #999;
    border-radius: 4px;
}

.consent-checkbox .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.consent-checkbox .form-check-label {
    font-size: 0.95rem;
    line-height: 1.6;
    cursor: pointer;
    flex: 1;
}

/* Sekcja WWRD */
.wwrd-section {
    background-color: #fff9f0;
    border-left: 4px solid #ad1739;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

/* Podsekcje danych (Państwa dane, Dane dziecka, Uwagi) */
.data-section {
    background-color: #faf7f2;
    border-left: 4px solid #d4a574;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-title {
    color: #ad1739;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.subsection-title {
    color: #8b1230;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Lista plików */
.uploaded-files-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #ad1739;
    box-shadow: 0 2px 8px rgba(173, 23, 57, 0.1);
}

.file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.file-size {
    color: #666;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.file-remove-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: bold;
}

.file-remove-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* =================================
   STREFA PRZECIĄGANIA PLIKÓW
   ================================= */
.file-drop-zone {
    border: 2px dashed #ad1739;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background-color: rgba(173, 23, 57, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: #8b1230;
    background-color: rgba(173, 23, 57, 0.08);
    transform: scale(1.01);
}

.file-drop-zone.drag-over {
    border-style: solid;
    box-shadow: 0 0 20px rgba(173, 23, 57, 0.2);
}

.file-drop-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.file-drop-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.file-drop-or {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.file-select-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.file-select-btn:hover {
    background: linear-gradient(135deg, #8b1230 0%, #6a0e26 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(173, 23, 57, 0.3);
}

/* Dozwolone formaty - desktop */
.file-formats-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(173, 23, 57, 0.15);
}

.file-formats-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    margin-right: 5px;
}

.file-format-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f8f4f0;
    border: 1px solid #d4a574;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b1230;
    text-transform: uppercase;
}

/* Dozwolone formaty - mobile */
.file-formats-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(173, 23, 57, 0.15);
}

.file-formats-info-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ad1739;
    border-radius: 50%;
    background-color: white;
    color: #ad1739;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.file-formats-info-btn:hover,
.file-formats-info-btn:active {
    background-color: #ad1739;
    color: white;
    transform: scale(1.1);
}

.file-formats-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

.file-size-info {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

/* Feedback walidacji plików */
.file-validation-feedback {
    margin-top: 10px;
    padding: 0;
    transition: all 0.3s ease;
}

.file-validation-feedback:empty {
    display: none;
}

.file-validation-success,
.file-validation-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    animation: slideInFeedback 0.3s ease-out;
}

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

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

.file-validation-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-validation-text {
    font-size: 0.9rem;
    flex: 1;
}

@keyframes slideInFeedback {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność - mobile */
@media (max-width: 768px) {
    .file-formats-desktop {
        display: none;
    }
    
    .file-formats-mobile {
        display: flex;
    }
    
    .file-drop-zone {
        padding: 25px 15px;
        border-style: solid;
    }
    
    /* Ukryj elementy drag & drop na mobile */
    .file-drop-icon,
    .file-drop-text,
    .file-drop-or {
        display: none;
    }
    
    .file-select-btn {
        padding: 14px 32px;
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

/* Przycisk wysyłania z loaderem */
#signingSubmitBtn {
    position: relative;
    min-width: 180px;
}

#signingSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Karta WWRD - specjalna stylizacja */
.wwrd-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
    border: 2px solid #d4a574 !important;
}

.wwrd-card.selected {
    background: linear-gradient(135deg, #ad1739 0%, #8b1230 100%);
    border-color: #ad1739 !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .selection-cards {
        grid-template-columns: 1fr;
    }

    .selection-card:nth-child(3) {
        max-width: 100%;
    }

    .form-sign {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkbox-options {
        width: 100%;
        max-width: 100%;
    }

    .checkbox-options.show {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

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

    .options-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.75rem;
    }

    .progress-step-label {
        font-size: 0.7rem;
    }

    .progress-step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .btn-prev, .btn-next {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .option-card {
        padding: 0.875rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .option-card-label {
        font-size: 0.875rem;
        line-height: 1.3;
    }
}

/* Przyciski radio dla obowiązku szkolnego */
.btn-group {
    max-width: 50%;
    gap: 10px;
    display: flex;
}

.btn-group .btn-outline-primary {
    color: #ad1739;
    border-color: #ad1739;
    background-color: #fff;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px !important;
    flex: 1;
}

.btn-group .btn-outline-primary:hover {
    background-color: #ece5c6;
    border-color: #ad1739;
    color: #ad1739;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #ad1739;
    border-color: #ad1739;
    color: #fff;
}

.btn-check:focus + .btn-outline-primary {
    box-shadow: 0 0 0 0.25rem rgba(173, 23, 57, 0.25);
}

/* Tekst pod przyciskami obowiązku szkolnego */
.btn-group + .form-text {
    margin-top: 10px;
    display: block;
}

/* Czerwona gwiazdka przy polach required */
.form-label:has(+ input[required])::after,
.form-label:has(+ textarea[required])::after,
.form-label:has(+ select[required])::after {
    content: ' *';
    color: #ad1739;
    font-weight: bold;
}

/* Dla labeli z d-block które mają radio required w następnym divie */
.form-label.d-block:has(+ div input[type="radio"][required])::after {
    content: ' *';
    color: #ad1739;
    font-weight: bold;
}

/* Dla labeli z klasą optional - nie pokazuj gwiazdki */
.form-label.optional::after,
.form-check-label.optional::after {
    content: '' !important;
}

/* Style dla checkboxa adresu zameldowania */
.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-check {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.form-check:hover {
    background-color: #e9ecef;
}

.form-check-input:checked + .form-check-label {
    color: #ad1739;
    font-weight: 500;
}

