/* contact-section.css */

/* ============================================================
   03-php-01-contact-section — dark contact section
   All classes are prefixed "c3-" to avoid collisions with legacy
   site styles (.contact-form, .stack, .text-box, ...).
   Containers (.uk-container / .uk-inner-container) come from the
   global layout.css.
   ============================================================ */


.c3-section,
.c3-section * {
    box-sizing: border-box;
}


.c3-section {
    position: relative;
    background-color: #346687;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* Two-column layout: addresses left, form right */
.c3-grid {
    display: flex;
    flex-wrap: wrap;
}

.c3-aside {
    width: 33.3333%;
}

.c3-main {
    width: 66.6667%;
    padding: 0 15px;
}

/* ---------- Headings ---------- */

.c3-section .c3-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #fff;
}

/* ---------- Address blocks ---------- */

.c3-address {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.c3-address .c3-pin {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
}

.c3-address .c3-pin svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.6;
}

.c3-address-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 8px;
}

.c3-address address {
    font-style: normal;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.45;
}

.c3-map-link {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    transition: color .3s ease-in-out;
}

.c3-map-link:hover,
.c3-map-link:focus {
    color: #f21437;
    text-decoration: none;
}

.c3-note {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #fff;
}

/* ---------- Form ---------- */

.c3-form-wrap {
    display: block;
    width: 100%;
}

form.c3-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

/* visually hidden labels (accessibility) */
.c3-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.c3-input,
.c3-textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    float: none;
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
    font-size: 16px;
    font-family: inherit;
    margin: 0 0 15px;
    padding: 13px 25px;
}

.c3-input:focus,
.c3-textarea:focus {
    outline: 0;
    border-color: #fff;
}

.c3-label {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 8px;
}

.c3-input--ref {
    grid-column: span 1;
}

.c3-textarea {
    grid-column: 1 / -1;
    height: 120px;
    resize: vertical;
}

/* captcha + submit row */
.c3-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

/* ---------- Submit button ---------- */

.c3-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    background-color: #fff;
    color: #000;
    border: 0;
    border-radius: 0 0 0 20px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    transition: all .3s ease-in-out;
}

.c3-send-btn:hover,
.c3-send-btn:focus {
    background-color: #be4336;
    outline: 0;
    color: #fff;
}

.c3-send-btn[disabled] {
    opacity: .6;
    cursor: default;
}

.c3-send-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   Responsive
   ============================================================ */

/* tablet */
@media (max-width: 1199px) {

    form.c3-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .c3-input--ref {
        grid-column: span 1;
    }
}

/* small tablet — columns stack, addresses become a 3-col row */
@media (max-width: 959px) {
    .c3-aside,
    .c3-main {
        width: 100%;
    }
    .c3-aside {
        display: flex;
        flex-wrap: wrap;
        gap: 0 30px;
        margin-bottom: 30px;
    }
    .c3-aside > .c3-heading {
        width: 100%;
    }
    .c3-aside .c3-address {
        flex: 1 1 260px;
    }
}

/* phone */
@media (max-width: 639px) {

    .c3-section .c3-heading {
        font-size: 26px;
        margin-bottom: 20px;
    }
    form.c3-form {
        grid-template-columns: 1fr;
    }
    .c3-input,
    .c3-textarea {
        padding: 8px 15px;
    }
    .c3-input--ref {
        grid-column: 1 / -1;
    }
    .c3-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .c3-send-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .c3-address .c3-pin {
        width: 44px;
        height: 44px;
        margin-right: 14px;
    }
    .c3-address address {
        font-size: 16px;
    }
}
