/* ================================================== */
/* STYLE FORMULARZY - Browar Łażany                   */
/* ================================================== */

/* SEKCJA FORMULARZA */
.form-section {
    background-color: #1a1a1a;
}

.form-subtitle {
    color: #999;
    font-size: 18px;
    margin-top: 10px;
}

.form-container {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 40px;
    background: #222;
    border-radius: 8px;
}

/* ================================================== */
/* GRUPY FORMULARZA                                   */
/* ================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-label {
    display: block;
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.optional {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

/* ================================================== */
/* INPUTY                                             */
/* ================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px 15px;
    background: #333;
    border: 2px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #666;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================================================== */
/* STANY WALIDACJI                                    */
/* ================================================== */

input.error,
textarea.error {
    border-color: #e74c3c;
}

input.valid,
textarea.valid {
    border-color: #27ae60;
}

/* ================================================== */
/* RADIO BUTTONS                                      */
/* ================================================== */

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

.radio-label {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 300;
}

.radio-label:hover {
    color: #fff;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #444;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.radio-label:hover .radio-custom {
    border-color: #c9a227;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #c9a227;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #c9a227;
    border-radius: 50%;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #444;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #c9a227;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #c9a227;
    background-color: #c9a227;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    flex: 1;
}

/* ================================================== */
/* KOMUNIKATY BŁĘDÓW I PODPOWIEDZI                    */
/* ================================================== */

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    min-height: 20px;
}

.field-hint {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    color: #888;
}

.field-hint.warning {
    color: #e74c3c;
    font-weight: 500;
}

/* ================================================== */
/* KOMUNIKATY SUKCESU/BŁĘDU FORMULARZA                */
/* ================================================== */

.form-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 16px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    color: #27ae60;
}

.form-message.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

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

/* ================================================== */
/* ELEMENTY POMOCNICZE                                */
/* ================================================== */

.form-divider {
    border: none;
    border-top: 1px solid #444;
    margin: 35px 0;
}

.text-center {
    text-align: center;
}

/* ================================================== */
/* PRZYCISK WYSYŁANIA                                 */
/* ================================================== */

.btn-submit {
    display: inline-block;
    padding: 15px 50px;
    background: #c9a227;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn-submit:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* ================================================== */
/* RESPONSIVE                                         */
/* ================================================== */

@media (max-width: 768px) {
    .form-container {
        padding: 30px 25px;
        margin: 40px 15px 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 20px;
    }

    .form-label {
        font-size: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 16px; /* Zapobiega zoomowaniu na iOS */
        padding: 10px 12px;
    }
}

/* ================================================== */
/* PRZYCISK ROZWIJAJĄCY FORMULARZ                     */
/* ================================================== */

.btn-toggle-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #c9a227;
    color: #000;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.btn-toggle-form:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.btn-toggle-form .btn-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-toggle-form.active .btn-icon {
    transform: rotate(180deg);
}

/* ================================================== */
/* WRAPPER FORMULARZA - ANIMACJA ROZWIJANIA           */
/* ================================================== */

.form-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.form-wrapper.open {
    max-height: 1000px; /* Wystarczająco duża wartość */
    opacity: 1;
    margin-top: 30px;
}

/* ================================================== */
/* STYLE FORMULARZA (dla białego tła)                 */
/* ================================================== */

.bg-white .form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bg-white .form-label {
    color: #333;
}

.bg-white input[type="text"],
.bg-white input[type="email"],
.bg-white input[type="tel"],
.bg-white input[type="number"],
.bg-white textarea {
    background: #fff;
    border: 2px solid #ddd;
    color: #333;
}

.bg-white input:focus,
.bg-white textarea:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.bg-white input::placeholder,
.bg-white textarea::placeholder {
    color: #999;
}

.bg-white .checkbox-label {
    color: #555;
}

.bg-white .checkbox-custom {
    border-color: #ccc;
    background: #fff;
}

.bg-white .checkbox-label:hover .checkbox-custom {
    border-color: #c9a227;
}

.bg-white .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #c9a227;
    background-color: #c9a227;
}

/* ================================================== */
/* RESPONSIVE                                         */
/* ================================================== */

@media (max-width: 768px) {
    .btn-toggle-form {
        padding: 15px 30px;
        font-size: 16px;
    }

    .bg-white .form-container {
        padding: 30px 25px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .btn-toggle-form {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
}

/* ================================================== */
/* DWUKOLUMNOWY UKŁAD FORMULARZA ETYKIETY             */
/* ================================================== */

.two-column-layout {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    align-items: flex-start;
}

/* LEWA KOLUMNA - FORMULARZ */
.column-left {
    flex: 1;
    min-width: 0; /* Zapobiega przepełnieniu */
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.column-left .form-container {
    margin: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.column-left .form-container #labelOrderForm {
    width: 100%;
}

/* PRAWA KOLUMNA - TEKST I ZDJĘCIE */
.column-right {
    flex: 1;
    min-width: 0;
}

/* ================================================== */
/* INFO BOX - TEKST PO PRAWEJ                         */
/* ================================================== */

.info-box {
    background: #222;
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-box h2 {
    color: #c9a227;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.info-box p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* LISTA CECH */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: #fff;
    font-size: 16px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 24px;
    width: 35px;
    text-align: center;
}

/* WYRÓŻNIONY BLOK */
.info-highlight {
    background: rgba(201, 162, 39, 0.15);
    border-left: 4px solid #c9a227;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.info-highlight strong {
    color: #c9a227;
    font-size: 16px;
}

.info-highlight br + * {
    color: #fff;
}

/* ================================================== */
/* ZDJĘCIE                                            */
/* ================================================== */

.info-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.info-image:hover img {
    transform: scale(1.03);
}

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

@media (max-width: 1024px) {
    .two-column-layout {
        gap: 30px;
    }

    .info-box {
        padding: 25px;
    }

    .info-box h2 {
        font-size: 24px;
    }
}

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

@media (max-width: 768px) {
    .two-column-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "form"
            "photo";
        gap: 30px;
    }

    /* Tekst informacyjny na górze */
    .column-left {
        grid-area: form;
        width: 100%;
    }

    /* display: contents — dzieci column-right wchodzą bezpośrednio do grida */
    .column-right {
        display: contents;
    }

    .info-box {
        grid-area: info;
    }

    .info-image {
        grid-area: photo;
    }

    .info-box {
        padding: 25px 20px;
    }

    .info-box h2 {
        font-size: 22px;
    }

    .info-box p {
        font-size: 15px;
    }

    .feature-list li {
        font-size: 15px;
        padding: 10px 0;
    }

    .feature-icon {
        font-size: 20px;
        width: 30px;
    }
}

@media (max-width: 480px) {
    .two-column-layout {
        gap: 30px;
        margin-top: 30px;
    }

    .info-box {
        padding: 20px 15px;
    }

    .info-box h2 {
        font-size: 20px;
    }

    .info-highlight {
        padding: 12px 15px;
    }
}