.wbc-hidden {
    display: none !important;
}

.wbc-calculator-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #dbe5df;
    border-radius: 18px;
    padding: 24px;
    box-sizing: border-box;
    color: #023432;
    font-family: inherit;
    box-shadow: 0 24px 60px rgba(2, 52, 50, 0.12);
}

/* Top fields */
.wbc-top-grid {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 14px;
    margin-bottom: 18px;
}

.wbc-field {
    display: grid;
    gap: 7px;
}

.wbc-field label,
.wbc-message-head label {
    color: #023432;
    font-size: 12px;
    font-weight: 800;
}

.wbc-field select,
.wbc-field input[type="number"],
.wbc-field input[type="text"],
.wbc-field input[type="email"],
.wbc-field input[type="url"],
.wbc-message-row input[type="number"] {
    width: 100%;
    height: 42px;
    background: #f7fbf8;
    border: 1px solid #cfdcd4;
    border-radius: 9px;
    color: #023432;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
    outline: none;
}

.wbc-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-color: #f7fbf8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23023432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.wbc-field select:focus,
.wbc-field input:focus,
.wbc-message-row input[type="number"]:focus {
    border-color: #22A951;
    box-shadow: 0 0 0 3px rgba(34, 169, 81, 0.16);
}

/* Rate cards */
.wbc-rate-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.wbc-rate-card {
    background: #f8fbf9;
    border: 1px solid #d9e5de;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    min-height: 76px;
    box-sizing: border-box;
}

.wbc-rate-card span {
    display: block;
    color: #023432;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.2;
}

.wbc-rate-card strong {
    display: block;
    color: #023432;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 950;
    margin-bottom: 4px;
}

.wbc-rate-card small {
    display: block;
    color: rgba(2, 52, 50, 0.68);
    font-size: 9px;
    font-weight: 700;
}

/* Message rows */
.wbc-message-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.wbc-message-row {
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #d9e5de;
    border-radius: 14px;
    background: #f8fbf9;
    box-sizing: border-box;
}

.wbc-message-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.wbc-info {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d7e5dd;
    color: #023432;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.wbc-message-row input[type="range"] {
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: #d8e3dc;
    border-radius: 999px;
    outline: none;
    margin: 9px 0 6px;
}

.wbc-message-row input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #22A951;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.wbc-message-row input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #22A951;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.wbc-cost-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #023432;
    font-size: 11px;
    font-weight: 800;
}

.wbc-cost-line strong {
    color: #023432;
    font-size: 11px;
    font-weight: 900;
}

/* Buttons */
.wbc-calculate-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 11px;
    background: #22A951;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 12px 24px rgba(34, 169, 81, 0.18);
    transition: all 0.2s ease;
}

.wbc-calculate-btn:hover {
    background: #1c9145;
    transform: translateY(-1px);
}

.wbc-calculate-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.wbc-calculate-btn span {
    display: inline-flex;
    margin-left: 5px;
}

/* Lead form */
.wbc-lead-form {
    margin-top: 0;
    display: grid;
    gap: 12px;
}

.wbc-lead-header {
    padding: 14px;
    border-radius: 14px;
    background: #f8fbf9;
    border: 1px solid #d9e5de;
}

.wbc-lead-header h3 {
    margin: 0 0 4px;
    color: #023432;
    font-size: 18px;
    font-weight: 950;
}

.wbc-lead-header p {
    margin: 0;
    color: rgba(2, 52, 50, 0.68);
    font-size: 12px;
    line-height: 1.5;
}

/* Result */
.wbc-result {
    margin-top: 0;
    background: #f5fbf7;
    border: 1px solid rgba(34, 169, 81, 0.30);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.wbc-result-label {
    display: block;
    color: rgba(2, 52, 50, 0.78);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.wbc-result strong#wbc-total-cost {
    display: block;
    color: #023432;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 950;
    margin-bottom: 8px;
}

.wbc-result p {
    margin: 0;
    color: rgba(2, 52, 50, 0.70);
    font-size: 12px;
    line-height: 1.5;
}

/* Result breakdown */
.wbc-breakdown {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(34, 169, 81, 0.22);
    text-align: left;
}

.wbc-breakdown h4 {
    margin: 0 0 12px;
    color: #023432;
    font-size: 14px;
    font-weight: 950;
}

.wbc-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(2, 52, 50, 0.08);
}

.wbc-breakdown-row:last-child {
    border-bottom: none;
}

.wbc-breakdown-row span {
    color: rgba(2, 52, 50, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.wbc-breakdown-row strong {
    color: #023432;
    font-size: 13px;
    font-weight: 950;
    margin: 0;
}

/* Alert */
.wbc-alert {
    padding: 16px;
    border-radius: 10px;
    background: rgba(34, 169, 81, 0.08);
    border: 1px solid rgba(34, 169, 81, 0.25);
    color: #023432;
    font-size: 14px;
    line-height: 1.7;
}

/* Lead form actions: Back + Get My Estimate */
.wbc-form-actions {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* Result action: Subscribe Now only */
.wbc-result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.wbc-result-actions-single {
    grid-template-columns: 1fr;
}

/* Back and Subscribe buttons */
.wbc-back-btn,
.wbc-subscribe-btn {
    width: 100%;
    height: 42px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.wbc-back-btn {
    background: #f7fbf8;
    color: #023432;
    border: 1px solid #cfdcd4;
}

.wbc-back-btn:hover {
    background: #edf7f1;
    color: #023432;
    border-color: #22A951;
}

.wbc-subscribe-btn {
    background: #22A951;
    color: #ffffff;
    border: 1px solid #22A951;
    box-shadow: 0 12px 24px rgba(34, 169, 81, 0.18);
}

.wbc-subscribe-btn:hover {
    background: #1c9145;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Arabic / RTL support */
.wbc-rtl {
    direction: rtl;
    text-align: right;
}

/* Market select: RTL text and arrow on left */
.wbc-rtl .wbc-top-grid .wbc-field:first-child select {
    direction: rtl;
    text-align: right;
    padding-right: 14px;
    padding-left: 40px;
    background-position: left 14px center;
}

/* Currency select in Arabic: text right, arrow left */
.wbc-rtl .wbc-top-grid .wbc-field:nth-child(2) select {
    direction: rtl;
    text-align: right;
    padding-right: 14px;
    padding-left: 40px;
    background-position: left 14px center;
}

/* Cost line: label right, value left */
.wbc-rtl .wbc-cost-line {
    direction: rtl;
    flex-direction: row;
}

.wbc-rtl .wbc-cost-line span {
    text-align: right;
}

.wbc-rtl .wbc-cost-line strong {
    direction: ltr;
    text-align: left;
}

/* Result breakdown */
.wbc-rtl .wbc-breakdown {
    text-align: right;
}

.wbc-rtl .wbc-breakdown-row {
    direction: rtl;
    flex-direction: row;
}

.wbc-rtl .wbc-breakdown-row span {
    text-align: right;
}

.wbc-rtl .wbc-breakdown-row strong {
    direction: ltr;
    text-align: left;
}

/* Keep cards and result centered */
.wbc-rtl .wbc-result,
.wbc-rtl .wbc-rate-card {
    text-align: center;
}

/* Force calculator button style */
.wbc-calculator-card .wbc-calculate-btn {
    width: 100% !important;
    height: 46px !important;
    border: none !important;
    border-radius: 11px !important;
    background: #22A951 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    margin-top: 4px !important;
    box-shadow: 0 12px 24px rgba(34, 169, 81, 0.18) !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
}

.wbc-calculator-card .wbc-calculate-btn:hover {
    background: #1c9145 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    border-radius: 11px !important;
}

.wbc-calculator-card .wbc-calculate-btn:focus {
    background: #22A951 !important;
    color: #ffffff !important;
    border-radius: 11px !important;
    outline: none !important;
}

.wbc-calculator-card .wbc-calculate-btn:disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Mobile action buttons */
@media (max-width: 420px) {
    .wbc-form-actions,
    .wbc-result-actions {
        grid-template-columns: 1fr;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .wbc-message-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .wbc-message-row[data-category="authentication"] {
        grid-column: 1 / -1;
    }
}

/* Compact desktop */
@media (min-width: 1025px) {
    .wbc-calculator-card {
        max-width: 520px;
        padding: 20px;
    }

    .wbc-top-grid {
        margin-bottom: 15px;
    }

    .wbc-field select,
    .wbc-field input[type="number"],
    .wbc-field input[type="text"],
    .wbc-field input[type="email"],
    .wbc-field input[type="url"],
    .wbc-message-row input[type="number"] {
        height: 38px;
        font-size: 13px;
    }

    .wbc-rate-cards {
        gap: 9px;
        margin-bottom: 14px;
    }

    .wbc-rate-card {
        min-height: 66px;
        padding: 9px 6px;
    }

    .wbc-rate-card span {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .wbc-rate-card strong {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .wbc-rate-card small {
        font-size: 9px;
    }

    .wbc-message-row {
        padding: 10px;
    }

    .wbc-message-head {
        margin-bottom: 5px;
    }

    .wbc-message-head label {
        font-size: 11px;
    }

    .wbc-message-row input[type="range"] {
        height: 5px;
        margin: 6px 0 4px;
    }

    .wbc-cost-line,
    .wbc-cost-line strong {
        font-size: 10px;
    }

    .wbc-calculate-btn {
        height: 42px;
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .wbc-calculator-card {
        max-width: 100%;
        padding: 18px;
        border-radius: 14px;
    }

    .wbc-top-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wbc-rate-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .wbc-rate-card {
        padding: 9px 5px;
    }

    .wbc-rate-card strong {
        font-size: 13px;
    }

    .wbc-lead-header h3 {
        font-size: 16px;
    }

    .wbc-lead-header p {
        font-size: 11px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .wbc-calculator-card {
        padding: 14px;
    }

    .wbc-rate-cards {
        grid-template-columns: 1fr;
    }

    .wbc-rate-card strong {
        font-size: 15px;
    }

    .wbc-result strong#wbc-total-cost {
        font-size: 28px;
    }

    .wbc-breakdown-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .wbc-rtl .wbc-breakdown-row {
        align-items: stretch;
        text-align: right;
    }

    .wbc-rtl .wbc-breakdown-row strong {
        text-align: left;
    }
}