@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.meba-ht-wrap,
.meba-ht-wrap * {
    box-sizing: border-box;
}

.meba-ht-wrap {
    width: 100%;
    background: var(--meba-ht-bg, #ffffff);
    color: var(--meba-ht-text, #222222);
    font-family: 'Poppins', Arial, sans-serif;
    padding: var(--meba-ht-pad, 24px);
    overflow: hidden;
}

.meba-ht-inner {
    width: 100%;
    max-width: var(--meba-ht-max, 1200px);
    margin: 0 auto;
}

.meba-ht-title {
    margin: 0 0 22px;
    color: var(--meba-ht-text, #222222);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.meba-ht-subtitle {
    position: relative;
    display: inline-block;
    margin: 0 0 18px;
    color: var(--meba-ht-text, #222222);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
    line-height: 1.35;
}

.meba-ht-subtitle:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 38px;
    height: 2px;
    background: var(--meba-ht-primary, #ff0000);
    border-radius: 99px;
}

.meba-ht-panel {
    width: 100%;
    background: var(--meba-ht-panel, #f5f5f5);
    border: 1px solid var(--meba-ht-border, #e5e5e5);
    border-radius: var(--meba-ht-radius, 4px);
    overflow: hidden;
    margin-bottom: 34px;
}

.meba-ht-row {
    display: grid;
    grid-template-columns: minmax(220px, 32%) 1fr;
    min-height: 58px;
    border-bottom: 1px solid var(--meba-ht-border, #e5e5e5);
}

.meba-ht-row:last-child {
    border-bottom: 0;
}

.meba-ht-row label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--meba-ht-border, #e5e5e5);
    color: var(--meba-ht-muted, #555555);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.meba-ht-control {
    min-width: 0;
    padding: 14px 18px;
    display: flex;
    align-items: center;
}

.meba-ht-control input,
.meba-ht-control select,
.meba-ht-control textarea,
.meba-ht-message-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--meba-ht-border, #e5e5e5);
    background: var(--meba-ht-input-bg, #ffffff);
    color: var(--meba-ht-text, #222222);
    border-radius: var(--meba-ht-radius, 4px);
    box-shadow: none;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.meba-ht-control input,
.meba-ht-control select {
    min-height: 44px;
    padding: 10px 14px;
}

.meba-ht-control textarea,
.meba-ht-message-field textarea {
    min-height: 180px;
    padding: 14px;
    resize: vertical;
}

.meba-ht-control select {
    appearance: auto;
}

.meba-ht-control input:focus,
.meba-ht-control select:focus,
.meba-ht-control textarea:focus,
.meba-ht-message-field textarea:focus {
    border-color: var(--meba-ht-primary, #ff0000);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, .08);
}

.meba-ht-required {
    color: var(--meba-ht-primary, #ff0000);
    font-weight: 600;
}

.meba-ht-services-heading,
.meba-ht-message-heading {
    margin-top: 8px;
}

.meba-ht-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 4px 0 34px;
}

.meba-ht-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--meba-ht-text, #222222);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.meba-ht-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--meba-ht-primary, #ff0000);
}

.meba-ht-check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.meba-ht-message-field {
    margin-bottom: 22px;
}

.meba-ht-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 26px;
    border: 0;
    border-radius: var(--meba-ht-radius, 4px);
    background: var(--meba-ht-primary, #ff0000);
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.meba-ht-submit:hover,
.meba-ht-submit:focus {
    color: #ffffff;
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255, 0, 0, .18);
}

.meba-ht-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--meba-ht-radius, 4px);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.meba-ht-alert-success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.meba-ht-alert-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

@media (max-width: 1024px) {
    .meba-ht-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .meba-ht-wrap {
        padding: 18px 14px;
    }

    .meba-ht-row {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .meba-ht-row label {
        border-right: 0;
        border-bottom: 1px solid var(--meba-ht-border, #e5e5e5);
        padding: 13px 14px 6px;
    }

    .meba-ht-control {
        padding: 8px 14px 14px;
    }

    .meba-ht-services {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .meba-ht-control textarea,
    .meba-ht-message-field textarea {
        min-height: 150px;
    }

    .meba-ht-submit {
        width: 100%;
    }
}
