:root {
    --primary: #0b2c48;
    --secondary: #f5f5f5;
    --dark: #222;
    --light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark);
    line-height: 1.6
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto
}

.section {
    padding: 80px 0
}

.center {
    text-align: center
}

header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0
}

.logo img {
    height: 60px
}

.nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500
}

.nav a.active,
.nav a:hover {
    color: var(--primary)
}

/* PAGE TITLE (hero) - match Services page */
.page-title {
    background: linear-gradient(rgba(176, 176, 177, 0.55), rgba(11, 44, 72, 0.55)), url("../assets/contact/contact.jpg") center/cover no-repeat;
    padding: 80px 0;
    min-height: 240px;
    display: flex;
    align-items: center;
}

.page-title h1,
.page-title p {
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 12px
}

.contact-info p {
    color: var(--light);
    margin-bottom: 12px
}

/* Reach cards (Address / Email / Phone) */
.reach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.card {
    background: #fff;
    padding: 28px 22px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(11, 44, 72, 0.06);
    text-align: center;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start
}

.card-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px dotted var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px
}

.card-icon svg {
    width: 36px;
    height: 36px
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px
}

.card p {
    color: var(--light);
    line-height: 1.5;
    margin: 0
}

.card a {
    color: var(--dark);
    text-decoration: none
}

.card a:hover {
    color: var(--primary);
    text-decoration: underline
}

.contact-form form {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee
}

.contact-form label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 600
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd
}

.contact-form .btn {
    margin-top: 12px
}

.site-copy {
    text-align: center;
    padding: 20px 0;
    color: #999
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr
    }

    .header-flex {
        flex-direction: column
    }

    .nav a {
        margin: 10px
    }
}

@media (max-width: 1024px) {
    .reach-cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 600px) {
    .reach-cards {
        grid-template-columns: 1fr
    }

    .card {
        padding: 18px
    }
}

/* --- Modern contact section overrides (appended) --- */
.modern-hero {
    background: linear-gradient(180deg, rgba(11, 44, 72, 0.55), rgba(11, 44, 72, 0.6)), url("../assets/contact/contact.jpg") center/cover no-repeat;
    padding: 56px 0;
}

.modern-hero .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.title-text { width: 100%; }
.title-text h1 {
    font-size: clamp(28px, 4.6vw, 40px);
    margin: 0 0 6px;
    color: #fff;
}

.title-text .lead {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-actions .btn {
    box-shadow: 0 6px 20px rgba(11, 44, 72, 0.18);
}

.contact-section {
    padding: 48px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.contact-card h3 {
    color: var(--primary);
    margin: 10px 0 8px;
}

.contact-card p {
    color: var(--light);
    font-size: 0.95rem;
    line-height: 1.45;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 184, 148, 0.06));
    color: var(--primary);
}

.map-wrap {
    height: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.right-col .form-card {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.06);
}

.form-card h2 {
    margin: 0 0 8px;
}

.form-card .muted {
    color: var(--light);
    margin-bottom: 14px;
}

.form-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e6eef6;
    background: #fbfdff;
    outline: none;
    font-size: 0.95rem;
    color: var(--dark);
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.28);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.form-actions .checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--light);
    font-size: 0.92rem;
}

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}

.btn.primary {
    background: linear-gradient(90deg, #6c5ce7, #00b894);
    color: #fff;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.18);
}

.btn.ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.form-message {
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 1100px) {
    .contact-grid {
        grid-template-columns: 1fr 380px;
    }
}

@media (max-width: 880px) {
    .modern-hero .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .reach-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-wrap {
        height: 260px;
    }
}

@media (max-width: 520px) {
    .reach-cards {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}