/**
 * CSS dla formularza sponsoringowego
 * Moduł fluo_sponsoring
 */

/* Używamy tylko jasnego motywu - spójnego z Hummingbird */
.fluo-sponsoring-container {
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fluo-sponsoring-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.fluo-sponsoring-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
}

/* Pasek postępu */
.fluo-sponsoring-progress {
    margin-bottom: 30px;
}

.fluo-sponsoring-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.fluo-sponsoring-progress-fill {
    height: 100%;
    background: #0d6efd;
    transition: width 0.3s ease;
    width: 0%;
}

.fluo-sponsoring-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.fluo-sponsoring-progress-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.fluo-sponsoring-progress-step.active {
    color: #0d6efd;
    font-weight: 600;
    background: #e7f1ff;
    border-color: #0d6efd;
}

.fluo-sponsoring-progress-step.completed {
    color: #198754;
    background: #d1e7dd;
    border-color: #198754;
}

/* Kroki formularza */
.fluo-sponsoring-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fluo-sponsoring-step.active {
    display: block;
}

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

.fluo-sponsoring-step-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #212529;
    font-weight: 600;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
}

/* Pola formularza */
.fluo-sponsoring-field-group {
    margin-bottom: 25px;
}

.fluo-sponsoring-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
    font-size: 0.95rem;
}

.fluo-sponsoring-field-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    color: #212529;
    transition: all 0.2s ease;
}

.fluo-sponsoring-field-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    background: #ffffff;
}

.fluo-sponsoring-field-input.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.fluo-sponsoring-field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.fluo-sponsoring-field-error.show {
    display: block;
}

.fluo-sponsoring-field-input::placeholder {
    color: #adb5bd;
}

/* Checkbox group */
.fluo-sponsoring-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.fluo-sponsoring-checkbox-group .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fluo-sponsoring-checkbox-group .form-check-input {
    margin-top: 0;
    width: 18px;
    height: 18px;
}

.fluo-sponsoring-checkbox-group .form-check-label {
    margin: 0;
    color: #212529;
}

/* Przyciski akcji */
.fluo-sponsoring-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.fluo-sponsoring-actions button {
    min-width: 140px;
    padding: 10px 20px;
    font-weight: 500;
}

/* Responsywność */
@media (max-width: 768px) {
    .fluo-sponsoring-container {
        margin: 15px 0;
        padding: 15px;
    }

    .fluo-sponsoring-form-wrapper {
        padding: 20px;
    }

    .fluo-sponsoring-step-title {
        font-size: 1.25rem;
    }

    .fluo-sponsoring-progress-steps {
        font-size: 0.75rem;
        gap: 5px;
    }

    .fluo-sponsoring-progress-step {
        min-width: 90px;
        padding: 5px;
    }

    .fluo-sponsoring-actions {
        flex-direction: column;
        gap: 10px;
    }

    .fluo-sponsoring-actions button {
        width: 100%;
    }

    .fluo-sponsoring-field-input {
        font-size: 16px; /* Zapobiega zoom na iOS */
    }
}

/* Dostępność - focus visible */
.fluo-sponsoring-field-input:focus-visible,
.fluo-sponsoring-actions button:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
