/* Contact page — Techmagnate reference layout */

.contact-page .tm-breadcrumb li + li::before {
    content: '>';
}

/* Hero */
.contact-hero {
    background: linear-gradient(135deg, #023B5E 0%, #0570AE 55%, #0570AE 100%);
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h30v30H0zm30 30h30v30H30z' fill='%23ffffff' fill-opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.contact-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.contact-hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.contact-hero-text p {
    color: rgba(255, 255, 255, .92);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.btn-enquire-now {
    background: #fff;
    color: #0570AE;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
    border: none;
}

.btn-enquire-now:hover {
    background: #C3C3C3;
    color: #023B5E;
    transform: translateY(-2px);
}

.contact-hero-visual {
    position: relative;
    text-align: center;
}

.cta-bubble {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.35rem;
    max-width: 340px;
    margin: 0 auto 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
    font-weight: 600;
    color: #023B5E;
    font-size: .95rem;
    line-height: 1.5;
    position: relative;
    text-align: left;
}

.cta-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #fff;
}

.cta-person-wrap {
    border-radius: 20px;
    overflow: hidden;
    display: inline-block;
    max-width: min(280px, 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}

.cta-person-wrap img,
.contact-hero-img {
    width: auto;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Main section */
.contact-page-wrap {
    background: #ffffff;
    padding: 2.5rem 0 0;
}

.contact-main-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1.75rem;
    text-align: center;
}

.contact-alert-success {
    background: #ffffff;
    color: #023B5E;
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

/* 3-column cards */
.contact-cards-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #C3C3C3;
    overflow: hidden;
    height: 100%;
}

/* Office card */
.office-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.office-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
}

.office-monument {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.office-monument img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-badge {
    display: inline-block;
    border: 2px dashed #C3C3C3;
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .85rem;
    font-weight: 600;
    color: #767B79;
}

.office-city {
    font-size: 1.35rem;
    font-weight: 800;
    color: #023B5E;
    margin: 0 0 .5rem;
}

.office-address {
    font-size: .9rem;
    color: #767B79;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.office-sales h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.office-contact-line {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .65rem;
    font-size: .9rem;
}

.office-contact-line i { color: #0570AE; width: 20px; }
.office-contact-line a { color: #0570AE; font-weight: 600; text-decoration: none; }
.office-contact-line a:hover { text-decoration: underline; }

.speak-bar {
    margin-top: auto;
    background: linear-gradient(90deg, #0570AE, #0570AE);
    color: #fff;
    padding: .85rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: transform .2s;
}

.speak-bar:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, .35);
}

.speak-bar i { font-size: 1.25rem; }

/* Map card */
.map-card {
    padding: 0;
    min-height: 480px;
    position: relative;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    display: block;
}

.map-open-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #fff;
    padding: .4rem .85rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #023B5E;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* Form card */
.form-card { padding: 1.5rem 1.5rem 1.75rem; }

.form-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #023B5E;
}

.contact-ref-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-ref-form .form-field { margin-bottom: 1rem; }

.contact-ref-form label {
    font-size: .8rem;
    font-weight: 600;
    color: #023B5E;
    margin-bottom: .35rem;
    display: block;
}

.contact-ref-form .form-control,
.contact-ref-form .form-select {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid #C3C3C3;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
}

.contact-ref-form .form-control:focus,
.contact-ref-form .form-select:focus {
    outline: none;
    border-color: #0570AE;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, .12);
}

.contact-ref-form textarea.form-control { min-height: 100px; resize: vertical; }

.form-agree {
    font-size: .78rem;
    color: #767B79;
    margin: 1rem 0;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.form-agree a { color: #0570AE; }

.btn-submit-now {
    background: #0570AE;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    font-weight: 700;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s, transform .2s;
    cursor: pointer;
}

.btn-submit-now:hover {
    background: #0570AE;
    color: #fff;
    transform: translateY(-1px);
}

/* Regional offices */
.contact-cities {
    padding: 3.5rem 0 4rem;
    background: #ffffff;
}

.contact-cities-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #023B5E;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.city-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #C3C3C3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}

.city-card-img {
    height: 140px;
    overflow: hidden;
}

.city-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.city-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: .65rem;
}

.city-card-body p {
    font-size: .82rem;
    color: #767B79;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex: 1;
}

.btn-get-direction {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: #0570AE;
    text-decoration: none;
    border: 1px solid #C3C3C3;
    border-radius: 6px;
    padding: .5rem .85rem;
    transition: all .2s;
    align-self: flex-start;
}

.btn-get-direction:hover {
    background: #0570AE;
    color: #fff;
    border-color: #0570AE;
}

@media (max-width: 1199px) {
    .contact-cards-row { grid-template-columns: 1fr; }
    .map-card iframe { min-height: 320px; }
    .contact-cities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .contact-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-hero-text p { margin-left: auto; margin-right: auto; }

    .contact-ref-form .form-row-2 { grid-template-columns: 1fr; }
    .contact-cities-grid { grid-template-columns: 1fr; }
    .cta-person-wrap { max-width: min(260px, 90vw); }
    .cta-person-wrap img,
    .contact-hero-img { max-height: 180px; }
}
