/* ============================================================
   Contact Us — assets/css/pages/contact-us.css
   Scoped under body.page-contact to avoid global collisions.
   Typography, spacing and visual hierarchy aligned with
   index.css, about-us.css and working-capital-financing.css.
   ============================================================ */

/* --- Hero Section --- */
body.page-contact .contact-hero-section {
    padding: 0;
    position: relative;
    animation: contactFadeUp 0.6s ease both;
}

body.page-contact .contact-hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

body.page-contact .contact-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.45s ease;
}

body.page-contact .contact-hero-shell:hover .contact-hero-image {
    transform: scale(1.02);
}

body.page-contact .contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(23, 34, 62, 0.52) 0%, rgba(23, 34, 62, 0.18) 55%, transparent 100%);
    z-index: 1;
}

body.page-contact .contact-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 520px;
}

body.page-contact .contact-hero-content h1 {
    color: #FFFFFF;
    font-family: 'Onest', sans-serif;
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.01em;
}

body.page-contact .contact-hero-content h1 span {
    display: block;
    font-weight: 700;
    margin-top: 4px;
    transition: letter-spacing 0.3s ease;
}

body.page-contact .contact-hero-shell:hover .contact-hero-content h1 span {
    letter-spacing: 0.01em;
}

/* --- Contact Form Section --- */
body.page-contact .contact-form-section {
    padding: 70px 0;
    animation: contactFadeUp 0.65s ease both;
}

body.page-contact .contact-form-grid {
    align-items: flex-start;
}

body.page-contact .contact-col-left {
    padding-right: 48px;
}

body.page-contact .contact-section-title {
    color: #EA220F;
    font-family: 'Onest', sans-serif;
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
    font-style: normal;
}

body.page-contact .contact-body-text {
    color: #555555;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.68;
    margin: 0;
    text-align: left;
}

/* --- WhatsApp CTA (left column) --- */
body.page-contact .contact-whatsapp-block {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #E6B5B7;
}

body.page-contact .contact-whatsapp-title {
    color: #17223E;
    font-family: 'Onest', sans-serif;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

body.page-contact .contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 16px 36px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

body.page-contact .contact-whatsapp-btn:hover,
body.page-contact .contact-whatsapp-btn:focus {
    background: #1ebe57;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

body.page-contact .contact-whatsapp-btn i {
    font-size: 24px;
}

/* --- Right Column / Form --- */
body.page-contact .contact-col-right {
    padding-left: 48px;
}

body.page-contact .contact-form-heading {
    color: #808285;
    font-family: 'Onest', sans-serif;
    font-size: clamp(30px, 2.4vw, 40px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 28px;
    text-align: left;
}

body.page-contact .contact-form-card {
    display: flex;
    flex-direction: column;
}

body.page-contact .contact-form-card__fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

body.page-contact .contact-form-card__input {
    border: 1px solid #D1D3D4;
    background: #FFFFFF;
    height: 52px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #17223E;
    outline: none;
    border-radius: 0;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body.page-contact .contact-form-card__input:focus {
    border-color: #EA220F;
    box-shadow: 0 0 0 3px rgba(234, 34, 15, 0.08);
}

body.page-contact .contact-form-card__input::placeholder {
    color: #A6A6A6;
}

body.page-contact .contact-form-card__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23808285' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    color: #A6A6A6;
    cursor: pointer;
}

body.page-contact .contact-form-card__select:valid {
    color: #17223E;
}

body.page-contact .contact-form-card__select option {
    color: #17223E;
}

body.page-contact .contact-form-card__select option[disabled] {
    color: #A6A6A6;
}

body.page-contact .contact-form-card__textarea {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

body.page-contact .contact-form-card__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.page-contact .contact-form-card__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #EC1C24;
    border: 2px solid #EC1C24;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 16px 44px;
    cursor: pointer;
    transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    border-radius: 0;
}

body.page-contact .contact-form-card__submit:hover,
body.page-contact .contact-form-card__submit:focus {
    background: #d9171f;
    border-color: #d9171f;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(236, 28, 36, 0.25);
}

body.page-contact .contact-form-card__submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.page-contact .contact-form-card__status {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
    color: #6f6f6f;
}

body.page-contact .contact-form-card__status.is-error {
    color: #b4181e;
}

body.page-contact .contact-form-card__status.is-success {
    color: #1d7d32;
}

/* --- Entrance animation (matches about-us pattern) --- */
@keyframes contactFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Responsive: Small Desktop (≤1199px) ─── */
@media only screen and (max-width: 1199px) {
    body.page-contact .contact-hero-shell {
        min-height: 360px;
    }

    body.page-contact .contact-hero-content {
        padding: 60px 0;
    }

    body.page-contact .contact-hero-content h1 {
        font-size: clamp(31px, 3.4vw, 44px);
    }

    body.page-contact .contact-col-left {
        padding-right: 32px;
    }

    body.page-contact .contact-col-right {
        padding-left: 32px;
    }

    body.page-contact .contact-form-heading {
        font-size: 28px;
    }
}

/* ─── Responsive: Tablet (≤991px) ─── */
@media only screen and (max-width: 991px) {
    body.page-contact .contact-hero-shell {
        min-height: 340px;
    }

    body.page-contact .contact-hero-content {
        padding: 50px 0;
        max-width: 440px;
    }

    body.page-contact .contact-form-section {
        padding: 48px 0;
    }

    body.page-contact .contact-col-left {
        padding-right: 15px;
        margin-bottom: 36px;
    }

    body.page-contact .contact-col-right {
        padding-left: 15px;
    }

    body.page-contact .contact-form-heading {
        text-align: left;
        font-size: clamp(26px, 6vw, 34px);
    }

    body.page-contact .contact-whatsapp-block {
        margin-top: 36px;
        padding-top: 28px;
    }
}

/* ─── Responsive: Tablet Portrait (≤768px) ─── */
@media only screen and (max-width: 768px) {
    body.page-contact .contact-hero-shell {
        min-height: 300px;
    }

    body.page-contact .contact-hero-content h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    body.page-contact .contact-section-title {
        font-size: clamp(30px, 8vw, 40px);
    }
}

/* ─── Responsive: Large Phone (≤640px) ─── */
@media only screen and (max-width: 640px) {
    body.page-contact .contact-hero-shell {
        min-height: 280px;
    }

    body.page-contact .contact-hero-content {
        padding: 40px 0;
        max-width: 320px;
    }

    body.page-contact .contact-hero-content h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    body.page-contact .contact-form-section {
        padding: 40px 0;
    }

    body.page-contact .contact-form-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    body.page-contact .contact-whatsapp-btn {
        font-size: 15px;
        padding: 14px 28px;
    }
}

/* ─── Responsive: Standard Phone (≤430px) ─── */
@media only screen and (max-width: 430px) {
    body.page-contact .contact-hero-shell {
        min-height: 260px;
    }

    body.page-contact .contact-hero-content {
        padding: 32px 0;
        max-width: 280px;
    }

    body.page-contact .contact-form-card__input {
        height: 48px;
        padding: 12px 14px;
        font-size: 14px;
    }

    body.page-contact .contact-form-card__submit {
        width: 100%;
        padding: 14px 24px;
    }

    body.page-contact .contact-whatsapp-btn {
        font-size: 14px;
        padding: 14px 24px;
    }
}

/* ─── Responsive: iPhone SE (≤375px) ─── */
@media only screen and (max-width: 375px) {
    body.page-contact .contact-hero-content h1 {
        font-size: 25px;
    }

    body.page-contact .contact-section-title {
        font-size: 28px;
    }

    body.page-contact .contact-body-text {
        font-size: 14px;
    }

    body.page-contact .contact-whatsapp-title {
        font-size: 20px;
    }
}

/* ─── Responsive: Legacy Small (≤320px) ─── */
@media only screen and (max-width: 320px) {
    body.page-contact .contact-hero-shell {
        min-height: 220px;
    }

    body.page-contact .contact-hero-content {
        padding: 24px 0;
        max-width: 240px;
    }

    body.page-contact .contact-hero-content h1 {
        font-size: 22px;
    }

    body.page-contact .contact-form-card__textarea {
        min-height: 100px;
    }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    body.page-contact .contact-hero-section,
    body.page-contact .contact-form-section {
        animation: none;
    }

    body.page-contact .contact-hero-image,
    body.page-contact .contact-hero-content h1 span,
    body.page-contact .contact-form-card__input,
    body.page-contact .contact-form-card__submit,
    body.page-contact .contact-whatsapp-btn {
        transition: none;
    }
}

/* ─── Branches Section ─── */
body.page-contact .branches-section {
    padding: 64px 0 72px;
    background: #f5f5f5;
}

body.page-contact .branches-section-title {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    color: #231F20;
    margin-bottom: 36px;
    font-family: "Onest", sans-serif;
}

body.page-contact .branches-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

body.page-contact .branch-card {
    background: #fff;
    border-radius: 8px;
    padding: 22px 18px;
    border: 1px solid #e0e0e0;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.page-contact .branch-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

body.page-contact .branch-card__badge {
    display: inline-block;
    background: #EC1C24;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

body.page-contact .branch-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #231F20;
    margin: 0 0 10px;
    font-family: "Onest", sans-serif;
}

body.page-contact .branch-card__address {
    font-size: 14px;
    color: #595B64;
    line-height: 1.6;
    margin: 0 0 14px;
}

body.page-contact .branch-card__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #EC1C24;
    text-decoration: none;
    transition: color 0.2s;
}

body.page-contact .branch-card__phone::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

body.page-contact .branch-card__phone:hover {
    color: #c0151b;
}

@media (max-width: 1199px) {
    body.page-contact .branches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body.page-contact .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    body.page-contact .branches-section {
        padding: 48px 0 56px;
    }

    body.page-contact .branches-grid {
        grid-template-columns: 1fr;
    }
}
