/* ---------- Contact page ---------- */
.cu-page {
    direction: rtl;
    padding-top: calc(var(--nav-height) + 44px);
    padding-bottom: 72px;
    overflow: hidden;
    background-color: var(--white);
}

.cu-message-section,
.cu-contact-section,
.cu-quick-section {
    position: relative;
}

/* ---------- Message form ---------- */
.cu-message-section {
    padding: 18px 0 82px;
}

.cu-message-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 72px;
    margin: 0 0 36px;
    gap: 20px;
    direction: rtl;
    text-align: right;
}

.cu-message-title {
    order: 2;
    margin: 0;
    color: var(--heading);
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 800;
    line-height: 1.3;
}

.cu-dot-grid,
.cu-info-dots {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    background-image: radial-gradient(var(--primary) 3px, transparent 3.5px);
    background-size: 13px 13px;
    pointer-events: none;
}

.cu-message-head > .cu-dot-grid:first-child {
    order: 1;
}

.cu-message-head > .cu-dot-grid:last-child {
    position: absolute;
    inset-inline-end: 0;
    top: -22px;
    width: 74px;
    height: 74px;
    opacity: .28;
}

.cu-form {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

.cu-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 24px 28px;
}

.cu-field {
    min-width: 0;
}

.cu-field input,
.cu-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    height: 74px;
    padding: 0 26px;
    color: var(--heading);
    font: inherit;
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
    background-color: var(--white);
    border: 1.5px solid var(--border-muted);
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
}

.cu-field textarea {
    height: 330px;
    min-height: 330px;
    padding-top: 24px;
    padding-bottom: 24px;
    resize: vertical;
}

.cu-field input::placeholder,
.cu-field textarea::placeholder {
    color: var(--text);
    opacity: .72;
}

.cu-field input:focus,
.cu-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, .13);
}

.cu-field input:focus-visible,
.cu-field textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.cu-field--wide {
    grid-column: 1 / -1;
}

.cu-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 780px;
    max-width: 100%;
    min-width: 0;
    min-height: 66px;
    margin-block: 34px 0;
    margin-inline: auto;
    padding: 10px 14px 10px 24px;
    color: var(--white);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    direction: rtl;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    box-shadow: var(--shadow-red);
    cursor: pointer;
    transition: var(--transition);
}

.cu-submit-btn > i {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    color: var(--primary);
    font-size: 15px;
    background-color: var(--white);
    border-radius: 50%;
}

.cu-submit-btn:hover {
    color: var(--white);
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.cu-submit-btn:focus-visible {
    color: var(--white);
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.cu-form-status {
    width: 100%;
    min-height: 1.5em;
    margin: 16px 0 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Contact details and map ---------- */
.cu-contact-section {
    padding: 0 0 78px;
}

.cu-contact-card {
    display: flex;
    align-items: stretch;
    min-height: 520px;
    overflow: hidden;
    direction: rtl;
    background-color: var(--white);
    border: 1px solid var(--border-muted);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.cu-map,
.cu-info-panel {
    box-sizing: border-box;
}

.cu-map {
    display: flex;
    order: 1;
    flex: 0 0 64%;
    min-width: 0;
    min-height: 520px;
    padding: 14px;
    background-color: var(--white);
}

.cu-map-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 490px;
    border: 0;
    border-radius: 20px;
}

.cu-map-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 490px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.cu-info-panel {
    position: relative;
    display: flex;
    order: 2;
    flex: 0 0 36%;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 58px 42px;
    overflow: hidden;
    color: var(--heading);
    background-color: var(--white);
}

.cu-info-dots {
    position: absolute;
    inset-inline-end: 36px;
    top: 36px;
    width: 86px;
    height: 58px;
    opacity: .28;
}

.cu-info-heading {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    color: var(--heading);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.4;
    text-align: right;
}

.cu-info-heading::after {
    display: block;
    width: 76px;
    height: 4px;
    margin-top: 14px;
    margin-inline-start: 0;
    margin-inline-end: auto;
    background-color: var(--primary);
    border-radius: 999px;
    content: '';
}

.cu-info-list {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
}

.cu-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--border-muted);
}

.cu-info-item:last-child {
    border-bottom: 0;
}

.cu-info-item > div {
    min-width: 0;
    flex: 1 1 auto;
}

.cu-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--primary);
    font-size: 18px;
    background-color: rgba(200, 16, 46, .1);
    border-radius: 50%;
}

.cu-info-label,
.cu-info-value {
    display: block;
}

.cu-info-label {
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.cu-info-value {
    color: var(--heading);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.cu-info-value a {
    color: var(--heading);
    text-decoration: none;
    transition: var(--transition);
}

.cu-info-value a:hover,
.cu-info-value a:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------- Quick contact CTA ---------- */
.cu-quick-section {
    display: flex;
    align-items: center;
    width: calc(100% - 48px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 34px 40px;
    gap: 0;
    direction: rtl;
    background-color: var(--light-bg);
    border-radius: 26px;
}

.cu-social-panel,
.cu-quick-copy,
.cu-quick-contact {
    min-width: 0;
    box-sizing: border-box;
}

.cu-social-panel {
    flex: 1 1 27%;
    padding-inline-end: 36px;
    border-inline-end: 1px solid rgba(200, 16, 46, .45);
    text-align: right;
}

.cu-social-panel > p {
    margin: 0 0 14px;
    color: var(--heading);
    font-size: 16px;
    font-weight: 800;
}

.cu-social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.cu-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    transition: var(--transition);
}

.cu-social-link:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.cu-social-link:focus-visible,
.cu-whatsapp:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.cu-quick-copy {
    flex: 1.5 1 46%;
    padding: 0 36px;
    text-align: center;
}

.cu-quick-copy h2 {
    margin: 0 0 8px;
    color: var(--heading);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
}

.cu-quick-copy p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.cu-quick-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 27%;
    gap: 0;
    padding-inline-start: 36px;
}

.cu-headset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 98px;
    height: 98px;
    flex: 0 0 98px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.cu-headset-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cu-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 236px);
    min-width: 0;
    margin: 22px auto 0;
    padding: 13px 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    direction: rtl;
    background-color: transparent;
    border: 2px solid rgba(200, 16, 46, .6);
    border-radius: 999px;
    transition: var(--transition);
}

.cu-whatsapp > i {
    order: 2;
    font-size: 22px;
}

.cu-whatsapp:hover {
    color: var(--white);
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .cu-page {
        padding-top: calc(var(--nav-height) + 32px);
        padding-bottom: 64px;
    }

    .cu-message-section {
        padding-bottom: 64px;
    }

    .cu-message-head {
        margin-bottom: 30px;
    }

    .cu-contact-card {
        flex-direction: column;
        min-height: 0;
    }

    .cu-map {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        min-height: 400px;
    }

    .cu-map-frame {
        min-height: 376px;
    }

    .cu-map-image {
        min-height: 376px;
    }

    .cu-info-panel {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        padding: 48px 40px;
    }

    .cu-info-dots {
        top: 28px;
        inset-inline-end: 32px;
    }

    .cu-quick-section {
        width: calc(100% - 40px);
        flex-direction: column;
        padding: 32px 30px;
        gap: 26px;
        text-align: center;
    }

    .cu-social-panel,
    .cu-quick-copy,
    .cu-quick-contact {
        width: 100%;
        flex: 0 0 auto;
        padding-inline: 0;
    }

    .cu-social-panel {
        padding-bottom: 24px;
        border-inline-end: 0;
        border-bottom: 1px solid rgba(200, 16, 46, .45);
        text-align: center;
    }

    .cu-social-links {
        justify-content: center;
    }

    .cu-quick-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .cu-page {
        padding-top: calc(var(--nav-height) + 22px);
        padding-bottom: 54px;
    }

    .cu-message-section {
        padding: 10px 0 48px;
    }

    .cu-message-head {
        min-height: 58px;
        margin-bottom: 26px;
        gap: 12px;
    }

    .cu-message-title {
        font-size: clamp(27px, 8vw, 34px);
    }

    .cu-dot-grid {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        background-size: 10px 10px;
    }

    .cu-message-head > .cu-dot-grid:last-child {
        top: -8px;
        width: 50px;
        height: 50px;
    }

    .cu-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cu-field--wide {
        grid-column: auto;
    }

    .cu-field input,
    .cu-field textarea {
        height: 64px;
        padding-right: 20px;
        padding-left: 20px;
        font-size: 15px;
        border-radius: 17px;
    }

    .cu-field textarea {
        height: 230px;
        min-height: 230px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .cu-submit-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 62px;
        margin-top: 26px;
        font-size: 16px;
    }

    .cu-submit-btn > i {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .cu-contact-section {
        padding-bottom: 50px;
    }

    .cu-contact-card {
        border-radius: 20px;
    }

    .cu-map {
        min-height: 266px;
        padding: 8px;
    }

    .cu-map-frame {
        min-height: 250px;
        border-radius: 14px;
    }

    .cu-map-image {
        min-height: 250px;
        border-radius: 14px;
    }

    .cu-info-panel {
        padding: 38px 22px 30px;
    }

    .cu-info-dots {
        top: 20px;
        inset-inline-end: 22px;
        width: 64px;
        height: 46px;
        background-size: 11px 11px;
    }

    .cu-info-heading {
        margin-bottom: 20px;
        font-size: 26px;
    }

    .cu-info-heading::after {
        width: 62px;
        margin-top: 11px;
    }

    .cu-info-item {
        gap: 12px;
        padding: 15px 0;
    }

    .cu-info-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 16px;
    }

    .cu-info-label {
        font-size: 13px;
    }

    .cu-info-value {
        font-size: 13px;
        line-height: 1.75;
    }

    .cu-quick-section {
        width: calc(100% - 32px);
        padding: 28px 18px;
        gap: 22px;
        border-radius: 20px;
    }

    .cu-social-panel {
        padding-bottom: 20px;
    }

    .cu-social-links {
        gap: 18px;
    }

    .cu-social-link {
        font-size: 26px;
    }

    .cu-quick-copy h2 {
        font-size: 20px;
    }

    .cu-quick-copy p {
        font-size: 14px;
    }

    .cu-quick-contact {
        gap: 14px;
    }

    .cu-headset {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    .cu-whatsapp {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cu-field input,
    .cu-field textarea,
    .cu-submit-btn,
    .cu-social-link,
    .cu-info-value a,
    .cu-whatsapp {
        transition: none;
    }

    .cu-submit-btn:hover,
    .cu-social-link:hover,
    .cu-whatsapp:hover {
        transform: none;
    }
}
