/* ===========================================
   Contact Page — CarAssure
   =========================================== */

/* ===========================================
   HERO
   =========================================== */
.ct-hero {
    background: var(--color-white);
}

.ct-hero .section-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.ct-hero .section-header h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.2;
}

.ct-hero .section-header p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.75;
    margin: 0;
}

/* ===========================================
   CARDS
   =========================================== */
.ct-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ct-card {
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

/* --- Follow Us card --- */
.ct-card--follow {
    background: var(--color-secondary);
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.ct-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ct-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.ct-card-subtitle {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.ct-card-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ct-social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.ct-social-circle:hover {
    opacity: 0.8;
    color: var(--color-white);
}

.ct-social-circle--wa {
    background: #25D366;
}

/* --- Phone card --- */
.ct-card--phone {
    background: var(--color-primary);
    align-items: center;
    text-align: center;
    gap: 10px;
    justify-content: center;
}

.ct-card--phone .ct-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 4px;
}

.ct-card--phone .ct-card-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.ct-card--phone .ct-card-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.15s;
}

.ct-card--phone .ct-card-value:hover {
    opacity: 0.8;
    color: var(--color-white);
}

/* --- Email card --- */
.ct-card--email {
    background: var(--color-secondary);
    align-items: center;
    text-align: center;
    gap: 10px;
    justify-content: center;
}

.ct-card--email .ct-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 22, 57, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.ct-card--email .ct-card-label {
    font-size: 12px;
    color: rgba(0, 22, 57, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.ct-card--email .ct-card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.15s;
}

.ct-card--email .ct-card-value:hover {
    opacity: 0.75;
    color: var(--color-text);
}

/* ===========================================
   BODY — IMAGE + FORM
   =========================================== */
.ct-body {
    background: var(--color-white);
}

.ct-body-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.ct-body-layout--no-img {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}

.ct-body-image {
    align-self: stretch;
}

.ct-body-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    object-fit: cover;
}

/* ===========================================
   FORM
   =========================================== */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.ct-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.ct-field input,
.ct-field textarea,
.ct-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e4ed;
    border-radius: 10px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
    border-color: var(--color-primary);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: #b4b8c8;
}

.ct-field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Select */
.ct-select-wrap {
    position: relative;
}

.ct-select-wrap select {
    padding-right: 42px;
    cursor: pointer;
    color: var(--color-text);
}

.ct-select-caret {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

/* Submit */
.ct-form-submit {
    margin-top: 6px;
}

.ct-form-submit .btn-primary {
    padding: 14px 48px;
    font-size: 16px;
}

/* Notices */
.ct-form-notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.ct-form-notice--error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

/* Success state */
.ct-form-success {
    text-align: center;
    padding: 60px 24px;
}

.ct-form-success svg {
    color: #22c55e;
    margin-bottom: 16px;
}

.ct-form-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
}

.ct-form-success p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.7;
}

/* ===========================================
   MAP
   =========================================== */
.ct-map {
    line-height: 0;
    font-size: 0;
}

.ct-map iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1023px) {
    .ct-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ct-card--phone,
    .ct-card--email {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 24px 28px;
    }

    .ct-card--phone .ct-card-icon-wrap,
    .ct-card--email .ct-card-icon-wrap {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .ct-card--follow {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 28px;
    }

    .ct-body-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ct-body-image {
        align-self: auto;
    }

    .ct-body-img {
        height: auto;
        min-height: unset;
        max-height: 360px;
    }
}

@media (max-width: 599px) {
    .ct-hero .section-header {
        margin-bottom: 32px;
    }

    .ct-card--phone,
    .ct-card--email {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

.ct-form-row {
        grid-template-columns: 1fr;
    }

    .ct-map iframe {
        height: 300px;
    }
}
