/* ── Contact Collaborate Block ── */

.nml-cc {
    padding: 56px 0 80px;
}

/* ── Section heading ── */
.nml-cc__title {
    margin: 0 0 48px;
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    color: #0B101F;
    text-align: center;
}

.nml-cc__title-accent {
    color: #FF4171;
}

/* ── Outer wrapper ── */
.nml-cc__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 32px;
    background: #F5F6FA;
    border: 2px solid #889CF1;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.nml-cc__wrap {
    max-width: 1004px;
    margin: 0 auto;
}

.nml-cc-tg .nml-cc__wrap {
    max-width: 1022px;
}

.nml-cc__wrap:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: calc(100% - 64px);
    margin: 32px 0;
    background: #889CF1;
}

/* ══ LEFT — Platform card ══ */
.nml-cc__platform {
    position: relative;
}

.nml-cc__platform::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(150.93deg, #889CF1 0%, #FF4171 107.94%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.nml-cc__platform--container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 24px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    position: relative;
    border-radius: 12px;
    margin: 2px;
    height: stretch;
}

.nml-cc__platform-media {
    width: 100%;
    height: 100%;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.nml-cc__platform-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nml-cc__platform-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nml-cc__platform-title {
    margin: 0;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nml-cc__platform-text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* checklist */
.nml-cc__checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 16px;
    padding: 0;
    list-style: none;
}

.nml-cc__checklist li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nml-cc__checklist li::before {
    content: '';
    flex-shrink: 0;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("/wp-content/uploads/2026/06/Icon-50.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* ══ RIGHT — column wrapper ══ */
.nml-cc__right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Telegram card ── */
.nml-cc__tg-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 24px;
    background: #FFFFFF;
    border: 1px solid #D5DAFA;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    border-radius: 8px;
}

/* ── Telegram button override (uses same .nml-cc__submit-btn base) ── */
.nml-cc__tg-btn {
    text-decoration: none;
}

/* ── Divider ── */
.nml-cc__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.nml-cc__divider::before,
.nml-cc__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #889CF1;
}

.nml-cc__divider-label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #303D60;
}

/* ══ RIGHT — Email form ══ */
.nml-cc__form-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 24px 14px 24px;
    background: #FFFFFF;
    border: 1.5px solid #D5DAFA;
    box-shadow: 0 1px 2px rgba(76, 131, 243, 0.2);
    border-radius: 12px;
}

.nml-cc-tg .nml-cc__form-wrap {
    gap: 6px;
}

.nml-cc__form-title {
    margin: 0;
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Telegram card filled in — two titles stack in one column, so scale them down. */
.nml-cc-tg .nml-cc__form-title {
    font-size: 24px;
    line-height: 32px;
}

.nml-cc__form-text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nml-cc__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #D5DAFA;
}

.nml-cc-tg .nml-cc__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #D5DAFA;
}

/* textarea height override for this block */
.nml-cc__form .nml-textarea {
    min-height: 190px;
}

.nml-cc-tg .nml-cc__form .nml-textarea {
    min-height: 100px;
}

/* ── Form footer ── */
.nml-cc__form-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.nml-cc-tg .nml-cc__form-footer {
    margin-top: 10px;
}

.nml-cc-tg .nml-cc__form-footer:last-child {
    margin-top: 0;
}

.nml-cc-tg .nml-cc__tg-card .nml-cc__form-footer:last-child {
    margin-top: 10px;
}

.btn-outlined {
    cursor: pointer;
    white-space: nowrap;
}

.nml-cc__response-time {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #FF4171;
}

/* ── Loading state ── */
.nml-cc__btn-spinner {
    display: none;
    animation: nml-cc-spin 0.8s linear infinite;
}

.nml-cc__submit-btn--loading .nml-cc__btn-icon    { display: none; }
.nml-cc__submit-btn--loading .nml-cc__btn-spinner { display: block; }
.nml-cc__submit-btn--loading {
    opacity: 0.75;
    pointer-events: none;
}

@keyframes nml-cc-spin {
    to { transform: rotate(360deg); }
}

/* Status banner reuses global .nml-alert — only visibility toggle here */
.nml-cc__status[hidden] { display: none; }
.nml-cc__status:not([hidden]) { display: flex; }

@media (max-width: 991px) {
    .nml-cc {
        padding: 32px 0 40px;
    }

    .nml-cc__title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 34px;
    }

    .nml-cc__wrap {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .nml-cc__wrap:after {
        display: none;
    }

    .nml-cc__platform-body {
        gap: 8px;
    }

    .nml-cc__platform-media {
        flex: auto;
        height: 151px;
    }

    .nml-cc__platform-title {
        font-size: 24px;
        line-height: 32px;
    }

    .nml-cc__platform-text {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-cc__checklist {
        margin: 4px 0 12px;
    }

    .nml-cc__checklist li {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-cc__right {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #889CF1;
    }

    .nml-cc__tg-card,
    .nml-cc__form-wrap {
        padding: 20px;
        gap: 6px;
    }

    .nml-cc__form {
        margin-top: 14px;
        padding-top: 20px;
    }

    .nml-cc__divider {
        padding: 12px 0;
    }

    .nml-cc__form-title {
        font-size: 24px;
        line-height: 32px;
    }

    .nml-cc__form-text {
        font-size: 14px;
        line-height: 20px;
    }

    .nml-cc__form .nml-textarea {
        height: 182px;
    }

    .nml-cc-tg .nml-cc__form .nml-textarea {
        height: 182px;
    }

    .nml-cc__form-footer {
        flex-direction: column;
        gap: 8px;
    }

    .nml-cc__submit-btn {
        width: 100%;
        justify-content: center;
    }

    .nml-cc-tg .nml-cc__tg-card .nml-cc__form-footer:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 10px auto 0;
        width: 100%;
    }
}
