/* Style zgodne z oficjalną stroną Forum Rozwoju Mazowsza */

/* Import fontów */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Muli%3A400%2C600%2C700%2C800%2C900&subset=latin-ext');

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

html {
    margin: 0;
    padding: 0;
}

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

/* Header style */
.forum-header {
    background: url('/img/forum/2560x656px-01.png') center center/contain no-repeat;
    background-color: #f8f9fa;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 2560/656;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 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: #1a365d;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #2d3748;
    padding-bottom: 15px;
}

.registration-form h3 .forum-title {
    color: #718096 !important;
    font-weight: 500 !important;
}

/* Alert info */
.alert-info {
    background-color: #e6f3ff;
    border: 1px solid #90cdf4;
    color: #1a365d;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.alert-info strong {
    color: #1a365d;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a365d;
    font-size: 1rem;
}

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

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

.form-control:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    background-color: #fff;
}

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

.form-control.error:focus {
    border-color: #b20015;
    box-shadow: 0 0 0 3px rgba(178, 0, 21, 0.1);
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #1a365d;
}

.radio-item label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

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

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #1a365d;
    margin-top: 2px;
}

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

.checkbox-group label.required::after {
    content: " *";
    color: #b20015;
    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-color: #1a365d;
    color: #fff;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #153e75;
}

.accordion-header.active {
    background-color: #153e75;
}

.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: #1a365d;
    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-color: #1a365d;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 30px;
    font-family: 'Ubuntu', sans-serif;
}

.btn-submit:hover {
    background-color: #153e75;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

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

/* Footer */
.forum-footer {
    background-color: #1a365d;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.forum-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.forum-footer h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #EAC663;
}

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

.forum-footer a {
    color: #ecf0f1;
    text-decoration: none;
}

.forum-footer a:hover {
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
    .forum-header {
        background: url('/img/forum/1536x394px-01.png') center center/contain no-repeat;
        aspect-ratio: 1536/394;
        min-height: 150px;
    }

    .registration-form {
        padding: 20px;
    }

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

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

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

@media (max-width: 480px) {
    .forum-header {
        background: url('/img/forum/1536x394px-01.png') center center/contain no-repeat;
        aspect-ratio: 1536/394;
        min-height: 120px;
    }

    .registration-form {
        padding: 15px;
    }

    .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 #EAC663;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

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

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