/* Sekcja kontakt */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    position: relative;
}

.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: #1a478b;;
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 800;
    padding-left: 32px
}

.section-subtitle {
    max-width: 600px;
    margin: 0 0 50px;
    padding-left: 32px
}

/* Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Lewa kolumna */
.contact-heading {
    font-size: 26px;
    margin-bottom: 25px;
    color: #1a478b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 16px;
}

/* Ikony Iconify */
.mdi--email-outline,
.mdi--phone {
    display: inline-block;
    width: 28px;
    height: 28px;
    color: #0A285F;
    mask-size: contain;
    mask-repeat: no-repeat;
    background: no-repeat;
    background-size: 100% 100%;
}

.mdi--calendar-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    color: #0A285F;
    mask-size: contain;
    mask-repeat: no-repeat;
    background: no-repeat;
    background-size: 100% 100%;
}

/* Przykłady ikon */
.mdi--email-outline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a478b' d='M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0l-8 5l-8-5zm0 12H4V8l8 5l8-5z'/%3E%3C/svg%3E");
}
.mdi--phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a478b' d='M6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25c1.12.37 2.32.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57c.11.35.03.74-.25 1.02z'/%3E%3C/svg%3E");
}
.mdi--calendar-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a478b' d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14a2 2 0 0 0 2 2h14c1.11 0 2-.89 2-2V5a2 2 0 0 0-2-2m0 16H5V9h14zM5 7V5h14v2zm5.56 10.46l5.94-5.93l-1.07-1.06l-4.87 4.87l-2.11-2.11l-1.06 1.06z'/%3E%3C/svg%3E");
}

.contact-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 6px;
    color: #42536A;
    font-size: 15px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #B8C2D6;
    border-radius: 999px;
    background: #fff;                /* spójne z kartami i inputami */
}

.meta-sep {
    opacity: .6;
}

/* RWD: na bardzo wąskich ekranach separator niepotrzebny */
@media (max-width: 420px) {
    .meta-sep { display: none; }
}

/* Dane kontaktowe */
.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Linki */
.contact-item a {
    color: #0a285f;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.contact-item a:hover {
    opacity: 0.7;
}

/* Formularz */
.contact-info,
.contact-form-wrapper {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form textarea {
    background: #fff;
    border: 1px solid #B8C2D6;
    border-radius: 8px;
    font-size: 16px;
    padding: 14px;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0A285F;
    box-shadow: 0 0 0 3px rgba(10, 40, 95, 0.15);
    outline: none;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
    width: 100%;
}

/* Przyciski */
.contact-btn {
    background: #0A285F;
    border-radius: 10px;
    color: #fff;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 18px;
    display: inline-flex;
    justify-content: center;
    border: none;
    margin: 10px 0 0;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(10, 40, 95, 0.18);
    transition: background .2s, box-shadow .2s;
}

.contact-btn:hover {
    background: #071B45;
    box-shadow: 0 6px 16px rgba(10, 40, 95, 0.26);
}

.contact-btn-success {
    background: #1aa21a !important;
}


/* Wyrównanie do lewej */
.contact-form button {
    margin-left: 0;
}

/* Animacje */
@keyframes fadeUp {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Honeypot */
.hp-field {
    display: none !important;
    visibility: hidden !important;
}

/* Responsywność */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .section-title {
        font-size: 34px;
    }
    .contact-form-wrapper,
    .contact-info {
        padding: 26px;
    }
}

/* Spinner animowany */
.contact-btn {
    position: relative;
    overflow: hidden;
}
.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btn-loading .btn-spinner {
    display: inline-block;
}

/* Sekcja RODO */
.form-privacy {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.form-privacy a {
    color: #0095ff;
    text-decoration: none;
}

/* Wspólny styl dla overlay */
.form-response {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 260px;
    text-align: center;
    padding: 18px 26px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity .35s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Sukces */
.form-response.success {
    background: #1aa21a;
    color: #fff;
}

/* Błąd */
.form-response.error {
    background: #d33;
    color: #fff;
}

/* Pokazany overlay */
.form-response.show {
    display: block;
    opacity: 1;
}