/**
 * Zaki Contact Widget — Styles (zct- prefix)
 */

/* ─── Section ─────────────────────────────────────────── */
.zct-sec {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 90px 0 0;
    background: #fff;
    isolation: isolate
}

.zct-sec::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #f0f4ff;
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1
}

.zct-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .20;
    z-index: 0;
    pointer-events: none
}

.zct-blob-1 {
    width: 480px;
    height: 480px;
    top: 40px;
    right: -140px;
    background: radial-gradient(circle, #bfdbfe, transparent 65%)
}

.zct-blob-2 {
    width: 400px;
    height: 400px;
    bottom: 200px;
    left: -120px;
    background: radial-gradient(circle, #ddd6fe, transparent 65%)
}

.zct-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

/* ─── Contact Grid ────────────────────────────────────── */
.zct-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
    margin-bottom: 80px
}

.zct-info {
    padding-top: 8px
}

/* Kicker / Title */
.zct-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-weight: 800;
    font-size: .88rem;
    border: 1px solid rgba(37, 99, 235, .18);
    margin-bottom: 20px;
    letter-spacing: .04em
}

.zct-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-block
}

.zct-title {
    font-size: clamp(1.8rem, 2.6vw + .6rem, 2.7rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.03em;
    color: #0f172a;
    margin-bottom: 16px
}

.zct-hl {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.zct-sub {
    color: #475569;
    font-size: 1.03rem;
    line-height: 1.80;
    margin-bottom: 36px;
    max-width: 420px
}

/* Detail cards */
.zct-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px
}

.zct-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #f8faff;
    border: 1px solid rgba(148, 163, 184, .25);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none
}

.zct-detail:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .10);
    border-color: rgba(37, 99, 235, .25)
}

.zct-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0
}

.zct-di-blue {
    background: rgba(37, 99, 235, .10)
}

.zct-di-green {
    background: rgba(16, 185, 129, .10)
}

.zct-di-violet {
    background: rgba(124, 58, 237, .10)
}

.zct-di-amber {
    background: rgba(245, 158, 11, .10)
}

.zct-detail-body {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.zct-detail-label {
    font-size: .78rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: .05em;
    text-transform: uppercase
}

.zct-detail-val {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a
}

/* Socials */
.zct-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.zct-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #fff;
    font-size: .86rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease
}

.zct-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
    border-color: rgba(37, 99, 235, .30);
    color: #2563eb
}

/* ─── Form ────────────────────────────────────────────── */
.zct-form-wrap {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 28px;
    padding: 40px 38px;
    box-shadow: 0 16px 52px rgba(15, 23, 42, .09);
    position: relative;
    overflow: hidden
}

.zct-form-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #4f46e5);
    border-radius: 28px 28px 0 0
}

.zct-form-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px
}

.zct-form-sub {
    font-size: .90rem;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.6
}

.zct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px
}

.zct-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px
}

.zct-form-label {
    font-size: .84rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: .01em
}

.zct-form-input,
.zct-form-select,
.zct-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(148, 163, 184, .35);
    background: #f8faff;
    font-family: inherit;
    font-size: .93rem;
    color: #0f172a;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    direction: rtl;
    box-sizing: border-box
}

.zct-form-input::placeholder,
.zct-form-textarea::placeholder {
    color: #94a3b8
}

.zct-form-input:focus,
.zct-form-select:focus,
.zct-form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    background: #fff
}

.zct-form-select {
    cursor: pointer;
    appearance: none
}

.zct-form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.65
}

/* Range */
.zct-range-wrap {
    position: relative;
    margin-top: 4px
}

.zct-form-range {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    background: linear-gradient(to left, #2563eb var(--range-pct, 50%), #e2e8f0 var(--range-pct, 50%));
    cursor: pointer;
    direction: ltr
}

.zct-form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
    cursor: grab;
    transition: transform .15s ease
}

.zct-form-range::-webkit-slider-thumb:active {
    transform: scale(1.2);
    cursor: grabbing
}

.zct-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: .78rem;
    color: #94a3b8;
    font-weight: 600;
    direction: ltr
}

.zct-range-val {
    display: inline-block;
    font-size: .86rem;
    font-weight: 800;
    color: #2563eb;
    margin-top: 6px
}

/* Checkboxes */
.zct-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px
}

.zct-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(148, 163, 184, .30);
    background: #f8faff;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 700;
    color: #334155;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
    user-select: none
}

.zct-check-item input {
    display: none
}

.zct-check-item:has(input:checked) {
    border-color: #2563eb;
    background: rgba(37, 99, 235, .06);
    color: #1d4ed8
}

.zct-check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(148, 163, 184, .45);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .65rem;
    color: transparent;
    transition: border-color .18s ease, background .18s ease, color .18s ease
}

.zct-check-item:has(input:checked) .zct-check-box {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff
}

/* Submit */
.zct-form-submit {
    width: 100%;
    margin-top: 6px;
    padding: 15px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 14px 36px rgba(37, 99, 235, .35);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden
}

.zct-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(37, 99, 235, .44)
}

.zct-form-submit:active {
    transform: translateY(0)
}

/* Success */
.zct-form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 40px 20px
}

.zct-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: grid;
    place-items: center;
    font-size: 2rem;
    box-shadow: 0 16px 40px rgba(16, 185, 129, .30);
    animation: zctSuccessPop .5s cubic-bezier(.18, .89, .32, 1.28)
}

@keyframes zctSuccessPop {
    0% {
        transform: scale(0);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.zct-success-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #0f172a
}

.zct-success-sub {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.7
}


/* ─── Reveal ──────────────────────────────────────────── */
.zct-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.4, 0, .2, 1)
}

.zct-reveal.is-on {
    opacity: 1;
    transform: translateY(0)
}

.elementor-editor-active .zct-reveal,
.elementor-editor-preview .zct-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important
}

@media(prefers-reduced-motion:reduce) {
    .zct-reveal {
        transition: none;
        transform: none;
        opacity: 1
    }

    .zct-success-icon {
        animation: none
    }
}

@media(max-width:900px) {
    .zct-contact-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }
}

@media(max-width:640px) {
    .zct-sec {
        padding-top: 64px
    }

    .zct-form-wrap {
        padding: 28px 22px
    }

    .zct-form-row {
        grid-template-columns: 1fr
    }

    .zct-check-grid {
        grid-template-columns: 1fr
    }
}