/* =====================================================================
   Arrtha Motors – Official MG Dealership & Service Network
   Contact Page Stylesheet (assets/css/contact.css)
   ===================================================================== */

:root {
    --ct-purple: #ab17e7;
    --ct-purple-rgb: 171, 23, 231;
    --ct-purple-dark: #810fb5;
    --ct-purple-light: #f5e8fc;
    --ct-dark: #0f172a;
    --ct-dark-rgb: 15, 23, 42;
    --ct-text-muted: #64748b;
    --ct-border: #e2e8f0;
    --ct-radius: 16px;
    --ct-radius-lg: 24px;
}

.ct-page-wrap {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
}

/* ================= HERO HEADER ================= */
.ct-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a0614 0%, #15092b 45%, #220a40 100%);
    padding: 130px 0 90px;
    color: #ffffff;
    overflow: hidden;
}

.ct-hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(171, 23, 231, 0.28) 0%, rgba(171, 23, 231, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ct-hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ct-hero-content {
    position: relative;
    z-index: 2;
}

.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(171, 23, 231, 0.22);
    border: 1px solid rgba(171, 23, 231, 0.55);
    color: #f1bfff;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.ct-hero-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 20px;
}

.ct-hero-title span {
    background: linear-gradient(135deg, #f4b4ff 0%, #ab17e7 60%, #e28eff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ct-hero-desc {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 720px;
    margin-bottom: 35px;
}

.ct-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ct-btn-primary {
    background: linear-gradient(135deg, #ab17e7 0%, #c438f7 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(171, 23, 231, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.ct-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(171, 23, 231, 0.6);
    color: #ffffff;
}

.ct-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.ct-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ================= BREADCRUMB BAR ================= */
.ct-breadcrumb-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    font-size: 14px;
}

.ct-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
}

.ct-breadcrumb-list a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ct-breadcrumb-list a:hover {
    color: var(--ct-purple);
}

.ct-breadcrumb-list .active {
    color: var(--ct-purple);
    font-weight: 700;
}

/* ================= SECTION HEADERS ================= */
.ct-sec-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 55px;
}

.ct-sec-tag {
    display: inline-block;
    color: var(--ct-purple);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: var(--ct-purple-light);
    padding: 6px 16px;
    border-radius: 999px;
}

.ct-sec-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    color: var(--ct-dark);
    line-height: 1.25;
    margin-bottom: 16px;
}

.ct-sec-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ct-text-muted);
    margin: 0;
}

/* ================= CONTACT CARDS STRIP ================= */
.ct-cards-section {
    padding: 80px 0 40px;
    background: #ffffff;
}

.ct-card {
    background: #ffffff;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 32px 26px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.ct-card:hover {
    transform: translateY(-5px);
    border-color: rgba(171, 23, 231, 0.35);
    box-shadow: 0 16px 36px rgba(171, 23, 231, 0.1);
}

.ct-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ab17e7 0%, #c438f7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(171, 23, 231, 0.3);
}

.ct-card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--ct-dark);
    margin-bottom: 12px;
}

.ct-card-text {
    font-size: 14.5px;
    color: var(--ct-text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.ct-card-link {
    font-weight: 700;
    color: var(--ct-purple);
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.ct-card-link:hover {
    gap: 12px;
    color: var(--ct-purple-dark);
}

/* ================= CONTACT FORM SECTION (Matching Insurance.php Form Style) ================= */
.ct-form-section {
    padding: 60px 0 80px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.ct-header-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
}

.ct-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ct-main-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 740px;
}

.ct-form-card {
    max-width: 840px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px 15px;
    border: none;
    box-shadow: none;
}

.ct-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}

.ct-field {
    display: flex;
    flex-direction: column;
}

.ct-field.full {
    grid-column: 1 / -1;
}

.ct-form-label,
.ct-field label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: none;
    letter-spacing: normal;
}

.ct-form-label .req,
.ct-field label .req {
    color: #ef4444;
}

.ct-input,
.ct-select,
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    font-size: 15px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.ct-select,
.ct-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

.ct-input::placeholder,
.ct-field input::placeholder {
    color: #94a3b8;
    font-size: 14.5px;
}

.ct-input:focus,
.ct-select:focus,
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: #e52d27;
    box-shadow: 0 0 0 3px rgba(229, 45, 39, 0.12);
    background-color: #ffffff;
}

.ct-form-action {
    text-align: center;
    margin-top: 36px;
}

.ct-submit-btn {
    background-color: rgb(171, 24, 231);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 48px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(171, 24, 231, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
}

.ct-submit-btn:hover {
    background-color: rgb(147, 20, 201);
    box-shadow: 0 6px 20px rgba(171, 24, 231, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.ct-submit-btn:active {
    background-color: rgb(123, 16, 169);
    transform: translateY(0);
}

/* ---------- Flash Messages ---------- */
.ct-alert {
    max-width: 840px;
    margin: 0 auto 30px;
    padding: 16px 22px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ct-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Sidebar Details Card */
.ct-sidebar-card {
    background: linear-gradient(145deg, #130822 0%, #1c0a32 50%, #250b44 100%);
    border-radius: var(--ct-radius-lg);
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(171, 23, 231, 0.2);
    border: 1px solid rgba(171, 23, 231, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ct-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.ct-sidebar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(171, 23, 231, 0.28);
    border: 1px solid rgba(171, 23, 231, 0.5);
    color: #f1bfff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ct-sidebar-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.ct-sidebar-info p,
.ct-sidebar-info a {
    font-size: 14.5px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.6;
    text-decoration: none;
    display: block;
}

.ct-sidebar-info a:hover {
    color: #f4b4ff;
}

/* ================= INTERACTIVE MAP EXPLORER ================= */
.ct-map-section {
    padding: 95px 0;
    background: #ffffff;
}

.ct-map-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.ct-map-tab-btn {
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ct-map-tab-btn:hover {
    border-color: var(--ct-purple);
    color: var(--ct-purple);
}

.ct-map-tab-btn.active {
    background: var(--ct-purple);
    border-color: var(--ct-purple);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(171, 23, 231, 0.35);
}

.ct-map-pane {
    display: none;
    background: #ffffff;
    border-radius: var(--ct-radius-lg);
    border: 1px solid var(--ct-border);
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.ct-map-pane.active {
    display: block;
    animation: ctFadeIn 0.35s ease;
}

@keyframes ctFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ct-map-pane-header {
    padding: 24px 30px;
    background: #f8fafc;
    border-bottom: 1px solid var(--ct-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ct-map-pane-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--ct-dark);
}

.ct-map-pane-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--ct-text-muted);
}

.ct-map-frame-wrap {
    position: relative;
    width: 100%;
    height: 480px;
}

.ct-map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= EMERGENCY ROAD ASSISTANCE CALLOUT ================= */
.ct-emergency-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e0854 100%);
    padding: 65px 0;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-emergency-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.ct-emergency-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.ct-emergency-desc {
    font-size: 15.5px;
    color: #cbd5e1;
    margin: 0;
    max-width: 620px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .ct-hero-section {
        padding: 100px 0 70px;
    }

    .ct-sidebar-card {
        padding: 30px 25px;
    }

    .ct-map-frame-wrap {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .ct-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ct-main-title {
        font-size: 30px;
    }

    .ct-form-section {
        padding: 40px 0 60px;
    }

    .ct-submit-btn {
        width: 100%;
    }

    .ct-hero-actions {
        flex-direction: column;
    }

    .ct-btn-primary,
    .ct-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}