/* =============================================
   CONTACT PAGE STYLES — Imbatik
   ============================================= */

/* Ensure CSS vars are available in editor context */
.editor-styles-wrapper .ct-hero,
.editor-styles-wrapper .ct-cards,
.editor-styles-wrapper .ct-map,
.ct-hero,
.ct-cards,
.ct-map {
    --primary: #5C82F2;
    --dark: #1a1c1e;
    --muted: #434653;
    --bg: #f9f9fc;
    --border: #e2e2e5;
    --max-w: 1200px;
}

/* ---------- ANIMATED BLOBS BACKGROUND ---------- */
@keyframes ct-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.15);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.85);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ---------- CONTACT HERO ---------- */
.ct-hero {
    position: relative;
    padding: 140px 24px 96px;
    overflow: hidden;
    background: #f9f9fc;
    isolation: isolate;
}

.ct-hero__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ct-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    mix-blend-mode: multiply;
    animation: ct-blob 10s infinite;
}

.ct-blob--1 {
    top: 10%;
    left: -8%;
    width: 500px;
    height: 500px;
    background: rgba(92, 130, 242, 0.4);
    animation-duration: 10s;
}

.ct-blob--2 {
    top: 20%;
    right: -8%;
    width: 550px;
    height: 550px;
    background: rgba(255, 123, 114, 0.3);
    animation-delay: 2s;
    animation-duration: 13s;
}

.ct-blob--3 {
    bottom: 20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: rgba(102, 210, 157, 0.35);
    animation-delay: 4s;
    animation-duration: 15s;
}

.ct-blob--4 {
    top: 40%;
    left: 40%;
    width: 450px;
    height: 450px;
    background: rgba(255, 196, 77, 0.25);
    animation-delay: 1s;
    animation-duration: 11s;
}

.ct-blob--5 {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(92, 130, 242, 0.2);
    animation-delay: 6s;
    animation-duration: 12s;
}

.ct-hero__inner {
    position: relative;
    z-index: 10;
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left content */
.ct-hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ct-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(92, 130, 242, 0.1);
    color: var(--primary);
    border: 1px solid rgba(92, 130, 242, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

.ct-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin: 0;
}

.ct-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

.ct-hero__trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ct-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 198, 213, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.ct-trust-pill__icon {
    font-size: 20px !important;
}

.ct-trust-pill__icon--blue {
    color: var(--primary);
}

.ct-trust-pill__icon--green {
    color: #006a45;
}

/* Right: Form Card */
.ct-hero__form-wrap {
    position: relative;
}

.ct-form-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    position: relative;
    z-index: 2;
}

.ct-form-card__inner {
    padding: 40px;
}

.ct-form-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 28px 0;
}

.ct-form-card__deco {
    position: absolute;
    inset: 0;
    background: rgba(92, 130, 242, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(92, 130, 242, 0.1);
    transform: rotate(2deg) scale(1.02);
    z-index: 1;
}

/* CF7 inside glass card */
.ct-form-card .contact-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

.ct-form-card .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.ct-form-card .form-input,
.ct-form-card .wpcf7-text,
.ct-form-card .wpcf7-email,
.ct-form-card .wpcf7-tel,
.ct-form-card .wpcf7-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(196, 198, 213, 0.3);
    font-size: 0.95rem;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ct-form-card .wpcf7-text:focus,
.ct-form-card .wpcf7-email:focus,
.ct-form-card .wpcf7-tel:focus,
.ct-form-card .wpcf7-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 130, 242, 0.1);
}

.ct-form-card .wpcf7-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Acceptance / Privacy */
.ct-form-card .form-privacy,
.ct-form-card .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ct-form-card .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.ct-form-card .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    border: 2px solid rgba(196, 198, 213, 0.5);
    accent-color: var(--primary);
    cursor: pointer;
    margin: 2px 0 0;
}

.ct-form-card .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

.ct-form-card .wpcf7-acceptance a {
    color: var(--primary);
    font-weight: 600;
}

/* Submit button */
.ct-form-card .form-submit-btn,
.ct-form-card .wpcf7-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(92, 130, 242, 0.3);
    letter-spacing: 0.01em;
}

.ct-form-card .form-submit-btn:hover,
.ct-form-card .wpcf7-submit:hover {
    background: #466edd;
    box-shadow: 0 12px 32px rgba(92, 130, 242, 0.4);
    transform: translateY(-1px);
}

/* ---------- CONTACT CARDS ---------- */
.ct-cards {
    padding: 80px 24px;
    position: relative;
    z-index: 10;
    background: transparent;
}

.ct-cards__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ct-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ct-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.ct-card--green:hover {
    border-color: rgba(0, 106, 69, 0.35);
}

.ct-card--blue:hover {
    border-color: rgba(92, 130, 242, 0.4);
}

.ct-card--coral:hover {
    border-color: rgba(166, 57, 52, 0.35);
}

.ct-card--yellow:hover {
    border-color: rgba(255, 196, 77, 0.5);
}

.ct-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.25s;
}

.ct-card:hover .ct-card__icon {
    transform: scale(1.1);
}

.ct-card__icon--green {
    background: rgba(140, 248, 192, 0.3);
    color: #006a45;
}

.ct-card__icon--blue {
    background: rgba(219, 225, 255, 0.5);
    color: var(--primary);
}

.ct-card__icon--coral {
    background: rgba(255, 218, 214, 0.4);
    color: #a63934;
}

.ct-card__icon--yellow {
    background: rgba(255, 196, 77, 0.2);
    color: #7a5800;
}

.ct-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--dark);
}

.ct-card__desc {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0 0 auto;
    padding-bottom: 16px;
    line-height: 1.5;
}

.ct-card__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    word-break: break-all;
}

/* ---------- CONTACT MAP ---------- */
.ct-map {
    padding: 0 24px 96px;
    position: relative;
    z-index: 10;
}

.ct-map__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.ct-map__container {
    position: relative;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Leaflet interactive map */
.ct-map__leaflet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Override default Leaflet tile filter for a slightly warmer look */
.ct-map__leaflet .leaflet-tile {
    filter: saturate(0.9) brightness(1.02);
}

/* Custom branded marker */
.ct-leaflet-marker {
    background: transparent !important;
    border: none !important;
}

.ct-leaflet-pin {
    width: 48px;
    height: 48px;
    background: var(--primary, #5C82F2);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(92, 130, 242, 0.5);
    border: 3px solid #fff;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}

.ct-leaflet-pin .material-symbols-outlined {
    transform: rotate(45deg);
    font-size: 22px !important;
    color: #fff;
    font-variation-settings: 'FILL' 1;
}

.ct-leaflet-pulse {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(92, 130, 242, 0.3);
    animation: leaflet-pulse 2s infinite;
    z-index: 1;
}

@keyframes leaflet-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Leaflet popup styling */
.ct-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0;
}

.ct-leaflet-popup .leaflet-popup-content {
    margin: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1a1c1e;
    line-height: 1.5;
}

.ct-leaflet-popup .leaflet-popup-tip-container {
    display: none;
}

.ct-leaflet-popup .leaflet-popup-close-button {
    color: #666;
    font-size: 18px;
    padding: 4px 8px;
}

.ct-map__card {
    position: absolute;
    bottom: 28px;
    left: 28px;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.ct-map__card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ct-map__card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-map__card-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.ct-map__card-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ct-map__card-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.ct-map__card-transport {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.ct-map__transport-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--muted);
}

.ct-map__transport-row .material-symbols-outlined {
    color: var(--primary);
    font-size: 20px;
}

.ct-map__directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 6px 18px rgba(92, 130, 242, 0.3);
}

.ct-map__directions-btn:hover {
    background: #466edd;
    transform: translateY(-1px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .ct-hero__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ct-cards__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ct-hero {
        padding: 120px 20px 60px;
    }

    .ct-hero__title {
        font-size: 2.2rem;
    }

    .ct-form-card__inner {
        padding: 24px;
    }

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

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

    .ct-map {
        padding: 0 16px 60px;
    }

    .ct-map__container {
        height: 480px;
        border-radius: 20px;
    }

    .ct-map__card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: 100%;
    }
}