/* ========================================
   STRONA KONTAKTOWA - NOWOCZESNY STYL
   @since 2025-12-05
======================================== */

/* === LAYOUT GŁÓWNY === */
.contact-page {
    padding: 40px 0 60px;
    background: #fff;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Tytuł strony kontakt - styl jak na /meble-drewniane/ */
.contact-header .page-title-wrapper {
    text-align: center;
}

.contact-header .page-title {
    font-size: 32px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.contact-header .page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background-color: #FBCF0B;
}

.contact-intro {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.6;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* === KARTY === */
.contact-form-card,
.contact-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.contact-form-card:hover,
.contact-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    order: 1;
}

.contact-form-section {
    order: 2;
}

/* === NAGŁÓWKI SEKCJI === */
.contact-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    display: inline-block;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FBCF0B;
}

.contact-form-card .contact-section-title,
.contact-info-card .contact-section-title {
    display: inline-block;
    margin-bottom: 34px;
}

.contact-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

/* === FORMULARZ - FLOATING LABELS === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Grid formularza - jak w checkout */
.contact-form .billing-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 24px;
}

.contact-form .billing-grid.full {
    grid-template-columns: 1fr;
}

.contact-form .billing-grid.double {
    grid-template-columns: 1fr 1fr;
}

/* Textarea floating label */
.contact-form .form-group textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: 24px;
}

.contact-form .form-group textarea:focus + label,
.contact-form .form-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    left: 12px;
    font-size: 12px;
    color: #333;
}

/* Focus state - bez zmiany ramki */
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
    border-color: #d1d1d1;
    box-shadow: none;
}

/* Label kolor - czarny dla wypełnionych pól */
.contact-form .form-group input:focus + label,
.contact-form .form-group input:not(:placeholder-shown) + label,
.contact-form .form-group textarea:focus + label,
.contact-form .form-group textarea:not(:placeholder-shown) + label {
    color: #333 !important;
}

/* Select - label na środku domyślnie */
.contact-form .form-group select + label {
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #888;
    pointer-events: none;
}

/* Select - label na górze po wybraniu (ukryty) */
.contact-form .form-group select:focus + label {
    top: 6px;
    transform: none;
    font-size: 12px;
    color: #333 !important;
}

.contact-form .form-group select.has-value + label {
    opacity: 0;
    visibility: hidden;
}

/* Label dla textarea */
.contact-form .form-group textarea + label {
    top: 18px;
    transform: none;
}

/* === CHECKBOX POLITYKI PRYWATNOŚCI === */
.privacy-checkbox-wrap {
    margin: 20px 0;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.privacy-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #000;
    cursor: pointer;
    margin-top: 2px;
}

/* Focus indicator dla dostępności */
.privacy-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #FBCF0B;
    outline-offset: 2px;
}

.privacy-checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid #FBCF0B;
    outline-offset: 2px;
}

.privacy-checkbox-label .privacy-text {
    flex: 1;
}

.privacy-checkbox-label .privacy-text a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-checkbox-label .privacy-text a:hover {
    color: #FBCF0B;
}

/* === PRZYCISK SUBMIT === */
.form-submit-wrap {
    margin-top: 10px;
    margin-bottom: 20px;
}

.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
}

.contact-form .btn-submit svg {
    transition: transform 0.3s ease;
}

.contact-form .btn-submit:hover svg {
    transform: translateX(4px);
}

/* === RECAPTCHA === */
.recaptcha-wrapper {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0;
}

/* === KOMUNIKATY === */
.contact-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #22c55e;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.contact-success h3 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px;
}

.contact-success p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.contact-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    width: 100%;
}

/* === POLITYKA PRYWATNOŚCI === */
.form-privacy {
    font-size: 13px;
    color: #888;
    margin: 0;
    width: 100%;
}

.form-privacy a {
    color: #000;
    text-decoration: underline;
}

.form-privacy a:hover {
    color: #FBCF0B;
}

/* === DANE KONTAKTOWE === */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    color: #666;
    stroke: #666;
}

.contact-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text p {
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

.contact-text a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: #FBCF0B;
}

/* === DANE FIRMY === */
.company-details p {
    font-size: 15px;
    color: #444;
    margin: 0 0 8px;
    line-height: 1.5;
}

.company-details p:last-child {
    margin-bottom: 0;
}

.company-details strong {
    color: #000;
}

/* === GODZINY OTWARCIA === */
.working-hours {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    color: #666;
}

.hours-row span:last-child {
    font-weight: 600;
    color: #000;
}

/* === FAQ SECTION (bez mapy) === */
.contact-faq-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.faq-layout {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
}

.faq-container .contact-section-title {
    margin-bottom: 24px;
    text-align: center;
    align-self: center;
}

.faq-container .contact-section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-list {
    width: 100%;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #fafafa;
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #666;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 24px;
}

.faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.faq-answer a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.faq-answer a:hover {
    color: #FBCF0B;
}


/* === RESPONSYWNOŚĆ === */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-section {
        order: 1;
    }

    .contact-form-section {
        order: 2;
    }
}

@media (max-width: 900px) {
    .contact-form .billing-grid,
    .contact-form .billing-grid.double {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-page {
        padding: 30px 0 40px;
    }

    .contact-header {
        margin-bottom: 30px;
    }

    .contact-intro {
        font-size: 16px;
    }

    .contact-form-card,
    .contact-info-card {
        padding: 24px 20px;
        border-radius: 6px;
    }

    .contact-form .billing-grid {
        gap: 16px;
        margin-bottom: 16px;
    }

    .contact-section-title {
        font-size: 20px;
    }

    .contact-form .btn-submit {
        padding: 14px 24px;
    }

    .hours-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* ========================================
   STRONA WSPÓŁPRACY
   @since 2025-12-09
======================================== */

/* === LAYOUT GŁÓWNY === */
.cooperation-page {
    padding: 40px 0 60px;
    background: #fff;
}

.cooperation-header {
    text-align: center;
    margin-bottom: 50px;
}

.cooperation-header .page-title {
    font-size: 32px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.cooperation-header .page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30%;
    width: 40%;
    height: 3px;
    background-color: #FBCF0B;
}

.cooperation-intro {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.6;
}

.cooperation-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* === KARTY === */
.cooperation-form-card,
.cooperation-info-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.cooperation-form-card:hover,
.cooperation-info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cooperation-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    order: 1;
}

.cooperation-form-section {
    order: 2;
}

/* === NAGŁÓWKI SEKCJI === */
.cooperation-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 24px 0;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    display: inline-block;
}

.cooperation-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FBCF0B;
}

.cooperation-form-card .cooperation-section-title,
.cooperation-info-card .cooperation-section-title {
    display: inline-block;
    margin-bottom: 34px;
}

.cooperation-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

/* === KORZYŚCI WSPÓŁPRACY === */
.cooperation-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    color: #666;
    stroke: #666;
}

.benefit-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* === LISTA "KOGO SZUKAMY" === */
.cooperation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooperation-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 15px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
}

.cooperation-list li:last-child {
    border-bottom: none;
}

.cooperation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* === KONTAKT BEZPOŚREDNI === */
.cooperation-contact p {
    font-size: 15px;
    color: #444;
    margin: 0 0 8px;
}

.cooperation-contact p:last-child {
    margin-bottom: 0;
}

.cooperation-contact a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cooperation-contact a:hover {
    color: #FBCF0B;
}

/* === RESPONSYWNOŚĆ WSPÓŁPRACA === */
@media (max-width: 992px) {
    .cooperation-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cooperation-info-section {
        order: 1;
    }

    .cooperation-form-section {
        order: 2;
    }
}

@media (max-width: 600px) {
    .cooperation-page {
        padding: 30px 0 40px;
    }

    .cooperation-header {
        margin-bottom: 30px;
    }

    .cooperation-intro {
        font-size: 16px;
    }

    .cooperation-form-card,
    .cooperation-info-card {
        padding: 24px 20px;
        border-radius: 6px;
    }

    .cooperation-section-title {
        font-size: 20px;
    }

    .benefit-item {
        flex-direction: column;
        gap: 12px;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
    }

    .benefit-icon svg {
        width: 20px;
        height: 20px;
    }
}
