/* ==========================================================================
   STRONA KONTAKTOWA - HERO I KONTENERY
   ========================================================================== */
.contact-hero {
    padding: clamp(60px, 8vw, 100px) 0; 
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(250px, 35vw, 350px);
    background: linear-gradient(180deg, #f9f9f9 0%, #f9f9f9 100%);
    z-index: -1;
}

.contact-container {
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px); 
}

.contact-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.heading-line {
    width: 64px;
    height: 4px;
    background-color: #111;
    margin: 0 auto clamp(16px, 2vw, 24px) auto;
    border-radius: 4px;
}

.contact-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: #475569;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   SEKCJA: KARTA KONTAKTOWA (INFO & FORMULARZ)
   ========================================================================== */
.contact-main-box {
    background-color: #306EB5;
    border-radius: clamp(20px, 3vw, 32px);
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(48, 110, 181, 0.35);
    position: relative;
    overflow: hidden;
}

.box-decor {
    position: absolute;
    right: -40px;
    top: -40px;
    font-size: clamp(150px, 20vw, 250px);
    color: #ffffff;
    opacity: 0.05;
    pointer-events: none;
    line-height: 1;
}

.box-inner {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.box-info-col {
    flex: 1 1 40%;
    padding: clamp(30px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-group {
    margin-bottom: clamp(20px, 3vw, 30px);
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 10px;
}

.info-email {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
    transition: opacity 0.3s ease;
    word-break: break-word;
}

.info-email:hover {
    opacity: 0.8;
    color: #ffffff;
}

.info-desc {
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.direct-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dc-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dc-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dc-text {
    display: flex;
    flex-direction: column;
}

.dc-name {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.dc-phone {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.dc-phone:hover {
    opacity: 0.8;
}

.socials-group {
    margin-bottom: 0;
}

.socials-list {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: #ffffff;
    color: #306EB5;
    transform: translateY(-2px);
}

.box-divider {
    width: 1px;
    padding: clamp(30px, 4vw, 40px) 0;
    display: flex;
    align-items: center;
}

.divider-line {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
}

.box-form-col {
    flex: 1 1 50%;
    padding: clamp(30px, 4vw, 48px);
}

.form-title {
    font-size: clamp(22px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.custom-contact-form .form-row {
    margin-bottom: 20px;
}

.custom-contact-form .form-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.custom-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.custom-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.custom-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.form-rodo {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.form-rodo input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: #1e293b;
    cursor: pointer;
}

.form-rodo label {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.cf-turnstile {
    margin: 4px 0;
    max-width: 100%;
    overflow: hidden;
}

.cf-turnstile iframe {
    max-width: 100% !important;
}

.form-rodo label a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.form-rodo label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background-color: #ffffff;
    color: #306EB5;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: #f1f5f9 !important;
    color: #306EB5 !important;
    transform: translateY(-2px);
}

.submit-btn:hover svg {
    color: #306EB5 !important;
    fill: #306EB5 !important;
}

/* ==========================================================================
   SEKCJA: ODDZIAŁY Z MAPAMI
   ========================================================================== */
.contact-branches {
    padding: clamp(60px, 8vw, 120px);
    background-color: #f9f9f9;
}

.branches-wrapper {
    background-color: #ffffff;
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(24px, 4vw, 48px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.branches-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 24px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.branches-title {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    margin: 0;
}

.branches-subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 500;
    color: #64748b;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: clamp(24px, 4vw, 40px);
}

.branch-card {
    background-color: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.branch-info {
    padding: clamp(24px, 3vw, 40px);
    flex-grow: 1;
}

.branch-name {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.branch-name span {
    color: #306EB5;
}

.branch-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branch-details li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bd-icon {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #306EB5;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.bd-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.4;
}

.bd-text strong {
    font-weight: 600;
    color: #334155;
}

.bd-phone {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bd-phone:hover {
    color: #306EB5;
}

.branch-map {
    width: 100%;
    height: clamp(250px, 30vh, 320px); 
    background-color: #e2e8f0;
    border-top: 1px solid #e2e8f0;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (RWD) - STRUKTURA
   ========================================================================== */
@media (max-width: 1024px) {
    .box-inner {
        flex-direction: column;
    }

    .box-divider {
        width: 100%;
        height: 1px;
        padding: 0;
        margin: clamp(10px, 2vw, 20px) 0;
    }

    .divider-line {
        width: 100%;
        height: 1px;
    }
    .contact-container {
        padding: 0 clamp(20px, 3vw, 24px);
    }
    .contact-branches {
        padding: clamp(60px, 8vw, 120px)0;
    }
    .contact-title {
        font-size: clamp(30px, 4.5vw, 48px);
    }
    .branches-title {
        font-size: clamp(25px, 3.5vw, 36px);
    }
    @media (min-width: 520px){
        .box-info-col {
            display: grid;
            grid-template-columns: 1fr 1fr; 
            align-items: start; 
        }

        .box-info-col > .info-group:first-child {
            grid-column: 1 / -1; 
            margin-bottom: 30px; 
        }
    }
}

.tomawer-form-msg {
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.tomawer-form-msg--success {
    background-color: #eaf2fb !important;
    border-left: 4px solid #5fac7b !important;
    color: #1e293b !important;
}

.tomawer-form-msg--error {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444 !important;
    color: #991b1b !important;
}
