/**
 * Compact contact actions and information panel.
 * Scoped to the contact component.
 */

[data-component="moeen-contact"] .moeen-contact__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}

[data-component="moeen-contact"] .moeen-contact__action {
    position: relative;
    display: inline-grid;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(35, 198, 189, 0.25);
    border-radius: 15px;
    color: #4ee8df;
    background: rgba(4, 20, 27, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

[data-component="moeen-contact"] .moeen-contact__action svg {
    width: 21px;
    height: 21px;
    flex: none;
}

[data-component="moeen-contact"] .moeen-contact__action--whatsapp {
    border-color: rgba(53, 240, 227, 0.42);
    color: #031216;
    background: linear-gradient(135deg, #35f0e3, #23c6bd);
}

[data-component="moeen-contact"] .moeen-contact__action--telegram {
    border-color: rgba(242, 201, 107, 0.32);
    color: #f2c96b;
    background: rgba(242, 201, 107, 0.075);
}

[data-component="moeen-contact"] .moeen-contact__action--email {
    color: #7cfbf3;
    background: rgba(35, 198, 189, 0.055);
}

[data-component="moeen-contact"] .moeen-contact__action::after {
    content: attr(data-tooltip);
    position: absolute;
    inset-block-end: calc(100% + 9px);
    inset-inline-start: 50%;
    z-index: 5;
    padding: 6px 9px;
    border: 1px solid rgba(35, 198, 189, 0.18);
    border-radius: 9px;
    color: #edfafa;
    background: rgba(2, 13, 18, 0.96);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

[data-component="moeen-contact"] .moeen-contact__action:hover,
[data-component="moeen-contact"] .moeen-contact__action:focus-visible {
    border-color: rgba(78, 232, 223, 0.62);
    color: #ffffff;
    background: rgba(35, 198, 189, 0.13);
    transform: translateY(-2px);
}

[data-component="moeen-contact"] .moeen-contact__action--whatsapp:hover,
[data-component="moeen-contact"] .moeen-contact__action--whatsapp:focus-visible {
    color: #031216;
    background: linear-gradient(135deg, #6afff5, #31d7cd);
}

[data-component="moeen-contact"] .moeen-contact__action:hover::after,
[data-component="moeen-contact"] .moeen-contact__action:focus-visible::after {
    opacity: 1;
    transform: translate(50%, 0);
}

[data-component="moeen-contact"] .moeen-contact__action:focus-visible {
    outline: 3px solid rgba(53, 240, 227, 0.18);
    outline-offset: 3px;
}

[data-component="moeen-contact"] .moeen-contact__meta {
    display: grid;
    grid-template-columns: 0.85fr 1.35fr 1fr;
    gap: 0;
    overflow: hidden;
    margin-top: 24px;
    padding: 0;
    border: 1px solid rgba(35, 198, 189, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 55%),
        rgba(6, 22, 29, 0.64);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

[data-component="moeen-contact"] .moeen-contact__meta-card,
[data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2),
[data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(3) {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    align-content: start;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

[data-component="moeen-contact"] .moeen-contact__meta-card + .moeen-contact__meta-card {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.065);
}

[data-component="moeen-contact"] .moeen-contact__meta-card:hover {
    border-color: rgba(255, 255, 255, 0.065);
    background: rgba(35, 198, 189, 0.025);
    transform: none;
}

[data-component="moeen-contact"] .moeen-contact__meta-icon {
    width: 36px;
    height: 36px;
    flex: none;
    border-color: rgba(35, 198, 189, 0.2);
    border-radius: 12px;
    color: #35f0e3;
    background: rgba(35, 198, 189, 0.055);
}

[data-component="moeen-contact"] .moeen-contact__meta-icon svg {
    width: 18px;
    height: 18px;
}

[data-component="moeen-contact"] .moeen-contact__meta-label {
    margin-bottom: 5px;
    font-size: 12px;
}

[data-component="moeen-contact"] .moeen-contact__meta-value {
    font-size: 12.5px;
    line-height: 1.65;
}

[data-component="moeen-contact"] .moeen-contact__meta-link,
[data-component="moeen-contact"] .moeen-contact__meta-note {
    margin-top: 6px;
    font-size: 11.5px;
}

@media (max-width: 920px) {
    [data-component="moeen-contact"] .moeen-contact__meta {
        grid-template-columns: 1fr 1fr;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        border-top: 1px solid rgba(255, 255, 255, 0.065);
        border-inline-start: 0;
    }
}

@media (max-width: 560px) {
    [data-component="moeen-contact"] .moeen-contact__actions {
        display: flex;
        grid-template-columns: none;
    }

    [data-component="moeen-contact"] .moeen-contact__meta {
        grid-template-columns: 1fr;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-card + .moeen-contact__meta-card,
    [data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2) {
        border-top: 1px solid rgba(255, 255, 255, 0.065);
        border-inline-start: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-component="moeen-contact"] .moeen-contact__action,
    [data-component="moeen-contact"] .moeen-contact__action::after {
        transition-duration: 0.01ms;
    }
}

/* Phone field: keep placeholder/text aligned from the right. */
[data-component="moeen-contact"] .moeen-contact__field-phone input[type="tel"],
[data-component="moeen-contact"] .moeen-contact__field-phone input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}

/* === Contact page identity polish 20260708 === */
[data-component="moeen-contact"] .moeen-contact__actions {
    justify-content: flex-start;
    gap: 12px;
}

[data-component="moeen-contact"] .moeen-contact__action,
[data-component="moeen-contact"] .moeen-contact__action--primary,
[data-component="moeen-contact"] .moeen-contact__action--whatsapp,
[data-component="moeen-contact"] .moeen-contact__action--telegram,
[data-component="moeen-contact"] .moeen-contact__action--email {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: 1px solid rgba(53, 240, 227, .28);
    border-radius: 16px;
    color: #35f0e3;
    background:
        radial-gradient(circle at 30% 18%, rgba(53, 240, 227, .15), transparent 38%),
        linear-gradient(180deg, rgba(6, 28, 36, .90), rgba(2, 12, 18, .86));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .045),
        0 14px 34px rgba(0, 0, 0, .18);
}

[data-component="moeen-contact"] .moeen-contact__action svg {
    width: 20px;
    height: 20px;
}

[data-component="moeen-contact"] .moeen-contact__action:hover,
[data-component="moeen-contact"] .moeen-contact__action:focus-visible,
[data-component="moeen-contact"] .moeen-contact__action--whatsapp:hover,
[data-component="moeen-contact"] .moeen-contact__action--whatsapp:focus-visible {
    color: #071014;
    border-color: rgba(53, 240, 227, .62);
    background: linear-gradient(135deg, #35f0e3, #d9b15e);
    transform: translateY(-3px);
    box-shadow:
        0 18px 42px rgba(53, 240, 227, .18),
        0 0 30px rgba(217, 177, 94, .12);
}

[data-component="moeen-contact"] .moeen-contact__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    margin-top: 26px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

[data-component="moeen-contact"] .moeen-contact__meta-card,
[data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2),
[data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(3) {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 17px 18px;
    border: 1px solid rgba(53, 240, 227, .16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(53, 240, 227, .085), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012)),
        rgba(4, 18, 25, .70);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 16px 42px rgba(0, 0, 0, .16);
    transform: none;
}

[data-component="moeen-contact"] .moeen-contact__meta-card + .moeen-contact__meta-card,
[data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2) {
    border-top: 1px solid rgba(53, 240, 227, .16);
    border-inline-start: 1px solid rgba(53, 240, 227, .16);
}

[data-component="moeen-contact"] .moeen-contact__meta-card:hover {
    border-color: rgba(53, 240, 227, .30);
    background:
        radial-gradient(circle at 100% 0%, rgba(53, 240, 227, .12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
        rgba(5, 22, 30, .82);
    transform: translateY(-2px);
}

[data-component="moeen-contact"] .moeen-contact__meta-card > div {
    min-width: 0;
    order: 1;
}

[data-component="moeen-contact"] .moeen-contact__meta-icon {
    order: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(53, 240, 227, .22);
    border-radius: 15px;
    color: #35f0e3;
    background: rgba(53, 240, 227, .07);
}

[data-component="moeen-contact"] .moeen-contact__meta-icon svg {
    width: 19px;
    height: 19px;
}

[data-component="moeen-contact"] .moeen-contact__meta-label {
    display: block;
    margin-bottom: 7px;
    color: #f7fbfb;
    font-size: 12.5px;
    font-weight: 950;
    line-height: 1.4;
}

[data-component="moeen-contact"] .moeen-contact__meta-value {
    display: block;
    color: rgba(246, 250, 250, .76);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.75;
}

[data-component="moeen-contact"] .moeen-contact__meta-value--phone {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #f7fbfb;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    direction: ltr;
}

[data-component="moeen-contact"] .moeen-contact__channel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 23px;
    padding: 4px 9px;
    border: 1px solid rgba(217, 177, 94, .34);
    border-radius: 999px;
    color: #f4d27b;
    background: rgba(217, 177, 94, .10);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    direction: rtl;
}

[data-component="moeen-contact"] .moeen-contact__meta-note {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(217, 177, 94, .24);
    border-radius: 999px;
    color: #f4d27b;
    background: rgba(217, 177, 94, .075);
    font-size: 11.8px;
    font-weight: 900;
    line-height: 1.5;
}

[data-component="moeen-contact"] .moeen-contact__meta-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    color: #35f0e3;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

[data-component="moeen-contact"] .moeen-contact__fields {
    gap: 14px;
}

[data-component="moeen-contact"] .moeen-contact__fields input[name="client_telegram"] {
    direction: ltr;
    text-align: right;
}

@media (max-width: 720px) {
    [data-component="moeen-contact"] {
        padding-block: 44px;
    }

    [data-component="moeen-contact"] .moeen-contact__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    [data-component="moeen-contact"] .moeen-contact__actions {
        justify-content: center;
        margin-top: 18px;
    }

    [data-component="moeen-contact"] .moeen-contact__meta {
        gap: 10px;
        margin-top: 20px;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-card,
    [data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(2),
    [data-component="moeen-contact"] .moeen-contact__meta-card:nth-child(3) {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        min-height: auto;
        padding: 15px;
        text-align: right;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-card > div {
        order: 2;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-icon {
        order: 1;
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-value--phone {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    [data-component="moeen-contact"] .moeen-contact__meta-note {
        border-radius: 14px;
    }

    [data-component="moeen-contact"] .moeen-contact__form-card {
        border-radius: 22px;
    }
}

/* Final phone placeholder alignment override. */
[data-component="moeen-contact"] .moeen-contact__field-phone input[type="tel"],
[data-component="moeen-contact"] .moeen-contact__field-phone input[type="tel"]::placeholder {
    direction: rtl;
    text-align: right;
}
