/* Style zgodne z oficjalną stroną Kongresu Szefów Kuchni i Restauratorów */

/* Import fontów */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header style */
.forum-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.forum-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.forum-header .patrons-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 2;
}


/* Formularz rejestracji */
.registration-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.registration-form h3 {
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 15px;
    letter-spacing: 1px;
}


/* Header z logo */
.header-with-logo {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.kongres-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.kongres-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.3));
}

.registration-form h3 .kongres-title {
    color: #d4af37 !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

/* Alert info */
.alert-info {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border: 2px solid #d4af37;
    color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.alert-info h4 {
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 10px;
}

.alert-info strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Formularz */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.form-group label.required::after {
    content: " *";
    color: #d4af37;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background-color: #f9f9f8;
}

.form-control:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

.form-control.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.form-control.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Radio buttons */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-item:hover {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-item label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
    color: #333;
}

.radio-item input[type="radio"]:checked+label {
    color: #d4af37;
    font-weight: 600;
}

.radio-item:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.radio-item:has(input[type="radio"]:checked) label {
    color: #d4af37;
    font-weight: 600;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"],
.registration-form .checkbox-group input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    accent-color: #d4af37;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
}

.checkbox-group label.required::after {
    content: " *";
    color: #d4af37;
    font-weight: bold;
}

/* Accordion */
.accordion {
    margin: 30px 0;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #d4af37;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    transform: translateX(2px);
}

.accordion-header.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
}

.accordion-content {
    padding: 20px;
    background-color: #fff;
    display: none;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-content.active {
    display: block;
}

.accordion-content h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.accordion-content p {
    margin-bottom: 10px;
}

.accordion-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 5px;
}

/* Przycisk submit */
.btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 30px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer */
.kongres-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
}

.kongres-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.kongres-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.kongres-footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
}

.kongres-footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.kongres-footer a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
}

.kongres-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
    .forum-header .patrons-logo {
        max-width: 95%;
        max-height: 70%;
    }

    .registration-form {
        padding: 20px;
    }

    .registration-form h3 {
        font-size: 1.5rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .radio-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .radio-item label {
        font-size: 14px;
        line-height: 1.3;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }


    /* Responsywność dla logo */
    .kongres-logo {
        max-width: 150px;
    }

    .header-with-logo {
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .kongres-logo {
        max-width: 180px;
    }

    .header-with-logo {
        gap: 18px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .kongres-logo {
        max-width: 200px;
    }

    .header-with-logo {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .forum-header .patrons-logo {
        max-width: 98%;
        max-height: 60%;
    }

    .registration-form {
        padding: 15px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        margin-top: 2px;
        box-sizing: border-box;
    }

    .checkbox-group {
        gap: 10px;
    }

    .registration-form h3 {
        font-size: 1.3rem;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-form {
    animation: fadeIn 0.6s ease-out;
}

/* Dodatkowe style dla lepszej czytelności */
.form-group .help-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.form-group .error-message {
    color: #b20015;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group .error-message.show {
    display: block;
}

/* Style dla pól warunkowych */
.conditional-field {
    display: none;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #d4af37;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d4af37;
}

.conditional-field.show {
    display: block;
}

.conditional-field input[type="text"] {
    margin-top: 10px;
}