/* ======================================================
   CEZEL 2.0
   CONTACT.CSS
====================================================== */

/* ======================================================
   SEKCJA KONTAKT
====================================================== */

.contact {
    padding: 110px 0 120px;
    background: #f8f6f3;
    color: var(--color-dark);
}


/* ======================================================
   KONTENER
====================================================== */

.contact-container {
    width: min(1200px, 90%);
    margin: 0 auto;
}


/* ======================================================
   NAGŁÓWEK
====================================================== */

.contact-header {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.contact-label {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #5b4637;
}

.contact-label::after {
    content: "";
    display: block;
    width: 220px;
    max-width: 42vw;
    height: 1px;
    margin: 16px auto 0;
    background: #8b5e3c;
    opacity: .65;
}

.contact-title {
    margin: 0 auto 24px;
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.18;
    font-weight: 700;
    color: #171310;
}

.contact-intro {
    max-width: 680px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: #4b4038;
}


/* ======================================================
   GŁÓWNA CZĘŚĆ
====================================================== */

.contact-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 90px;
    align-items: start;
}


/* ======================================================
   INFORMACJE
====================================================== */

.contact-info {
    padding-top: 8px;
}

.contact-info h3 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: #211a16;
}

.contact-info p {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.6;
    color: #4b4038;
}

.contact-info a {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 18px;
    color: #5b4637;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}


/* ======================================================
   FORMULARZ
====================================================== */

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 22px;
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #40352e;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d8d0c8;
    border-radius: 8px;
    background: #ffffff;
    color: #2d2621;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #9a6b4a;
    box-shadow: 0 0 0 3px rgba(154, 107, 74, .10);
}


/* Pola zajmujące całą szerokość */

.contact-field:nth-child(5),
.contact-file,
.contact-submit {
    grid-column: 1 / -1;
}


/* ======================================================
   ZAŁĄCZNIK
====================================================== */

.contact-file small {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.5;
    color: #75675c;
}


/* ======================================================
   PRZYCISK
====================================================== */

.contact-submit {
    justify-self: start;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 24px;

    border: 1px solid #8b5e3c;
    border-radius: 4px;

    background: #8b5e3c;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .25s,
        color .25s,
        border-color .25s;
}

.contact-submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;
}

.contact-submit-icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-submit:hover {
    background: #744a32;
    border-color: #744a32;
    color: #ffffff;
}

.contact-submit:hover {
    background: #8b5e3c;
    color: #ffffff;
}

.contact-map-link {
    margin-top: 32px;
}

.contact-map-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: auto;
    max-width: 320px;
    padding: 12px 16px;

    box-sizing: border-box;

    border: 1px solid #d8d0c8;
    border-radius: 8px;
    background: #faf9f7;
    color: #5b4637;
    text-align: left;
    cursor: pointer;

    transition: border-color .25s, background .25s;
}

.contact-map-button:hover {
    border-color: #9a6b4a;
    background: #f5f1ea;
}

.contact-map-icon {
    display:flex;
    align-items:center;
    justify-content:center;

    width:34px;
    height:34px;
    flex:0 0 34px;
}

.contact-map-icon svg {
    width:32px;
    height:24px;

    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.contact-map-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-map-text strong {
    font-size: 14px;
    font-weight: 600;
}

.contact-map-text small {
    font-size: 12px;
    color: #75675c;
}

/* ======================================================
   DANE KONTAKTOWE — IKONY
====================================================== */

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.contact-detail-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7f2424;
}

.contact-detail-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Telefon i e-mail — delikatne wyrównanie do tekstu */
.contact-detail:nth-of-type(2) .contact-detail-icon,
.contact-detail:nth-of-type(3) .contact-detail-icon {
    transform: translateY(-4px);
}

.contact-detail-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-detail a,
.contact-detail > span:last-child {
    font-size: 17px;
    line-height: 1.5;
    color: #4b4038;
    text-decoration: none;
}

.contact-address {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.contact-detail a:hover {
    color: #7f2424;
}

/* ======================================================
   KONTAKT — TELEFONY
====================================================== */

@media (max-width:768px){

    .contact-content{
        display:flex;
        flex-direction:column;
        gap:50px;
        width:100%;
        max-width:100%;
    }

    .contact-info{
        width:100%;
        max-width:100%;
    }

    .contact-form{
        display:grid;
        grid-template-columns:1fr;
        width:100%;
        max-width:100%;
    }

}

/* ======================================================
   USUWANIE WYBRANEGO PLIKU
====================================================== */

.contact-file-selected{
    display:none;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    margin-top:10px;
    padding:9px 12px;

    border:1px solid #d8d0c8;
    border-radius:6px;

    background:#faf9f7;
    color:#4b4038;

    font-size:13px;
}

.contact-file-selected.has-file{
    display:flex;
}

#contact-file-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

#contact-file-remove{
    flex:0 0 auto;

    border:none;
    background:transparent;
    color:#7f2424;

    font-family:inherit;
    font-size:13px;
    font-weight:600;

    cursor:pointer;
}

#contact-file-remove:hover{
    text-decoration:underline;
}
