/* ========================================
   BENTO CARD COMPONENTS
   ======================================== */

.jz-bento-card {
    background: var(--jz-surface);
    border-radius: 24px;
    padding: var(--jz-spacing-lg);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jz-bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.jz-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tag/Label */
.jz-tag {
    color: #2563EB;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: var(--jz-spacing-xs);
}

/* Card Title */
.jz-bento-title {
    font-family: var(--jz-font-headline);
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 10px 0;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .jz-bento-title {
        font-size: 32px;
    }
}

/* Card Subtitle */
.jz-bento-sub {
    font-family: var(--jz-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: auto;
}

@media (min-width: 1024px) {
    .jz-bento-sub {
        font-size: 16px;
    }
}

/* Action Footer */
.jz-action-footer {
    margin-top: var(--jz-spacing-md);
}

/* ========================================
   BUTTONS (Touch-Optimized)
   ======================================== */

.jz-btn-touch {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--jz-blue);
    color: #FFFFFF !important;
    padding: 18px;
    border-radius: var(--jz-radius-sm);
    font-weight: 800;
    font-family: var(--jz-font-headline);
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    /* Minimum touch target: 44x44px (iOS) / 48x48px (Android) */
    min-height: 48px;
}

.jz-btn-touch:hover {
    background: #1d4ed8;
    /* Darker blue on hover */
    transform: translateY(-1px);
}

.jz-btn-touch:active {
    transform: translateY(0);
}

.jz-btn-touch-alt {
    background: transparent;
    color: var(--jz-blue) !important;
    border: 2px solid var(--jz-blue);
}

.jz-btn-touch-alt:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* ========================================
   EXPANDER/ACCORDION (Calculator)
   ======================================== */

.jz-expander {
    margin-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.jz-expander-trigger {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--jz-blue);
    font-weight: 800;
    font-family: var(--jz-font-headline);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s ease;
    /* Ensure touch target size */
    min-height: 48px;
}

.jz-expander-trigger:hover {
    color: #1d4ed8;
}

.jz-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.jz-expander.is-open .jz-arrow {
    transform: rotate(180deg);
}

.jz-expander-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.jz-expander.is-open .jz-expander-content {
    max-height: 1000px;
    /* Large enough for content */
    padding-bottom: 20px;
}

/* ========================================
   CALCULATOR UI ELEMENTS
   ======================================== */

.jz-calc-step {
    margin-bottom: var(--jz-spacing-md);
}

.jz-calc-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: var(--jz-spacing-sm);
    color: var(--jz-text);
}

/* Radio Buttons as Cards */
.jz-radio {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.jz-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jz-radio-box {
    display: block;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--jz-radius-sm);
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--jz-surface);
    /* Ensure touch target */
    min-height: 48px;
    display: flex;
    align-items: center;
}

.jz-radio:hover .jz-radio-box {
    border-color: var(--jz-blue);
}

.jz-radio input:checked+.jz-radio-box {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--jz-blue);
    color: var(--jz-blue);
    font-weight: 700;
}

/* Checkbox variant */
.jz-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    min-height: 44px;
}

.jz-checkbox input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--jz-blue);
}

.jz-checkbox label {
    font-size: 15px;
    cursor: pointer;
}

/* ========================================
   PRICE SUMMARY
   ======================================== */

.jz-calc-summary {
    background: #F8FAFC;
    padding: var(--jz-spacing-md);
    border-radius: var(--jz-radius-sm);
    margin-top: var(--jz-spacing-md);
    border: 1px solid #E2E8F0;
}

.jz-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 8px;
    padding: 4px 0;
}

.jz-sum-row:last-child {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 2px solid #E2E8F0;
    font-size: 18px;
    font-weight: 800;
    color: var(--jz-text);
}

.jz-sum-row strong {
    font-weight: 700;
    color: var(--jz-text);
}

.jz-price-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

/* ========================================
   APPLE GLASS MODAL (Overlay)
   ======================================== */
.jz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    padding: 20px;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jz-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.jz-glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.jz-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.jz-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.jz-offer-title {
    font-family: var(--jz-font-headline);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0F172A;
}

.jz-offer-preview-list {
    margin-bottom: 24px;
}

.jz-offer-preview-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E2E8F0;
    font-size: 15px;
}

.jz-offer-price-block {
    background: rgba(37, 99, 235, 0.05);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.jz-offer-sum-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 16px;
}

.jz-offer-sum-row strong {
    color: var(--jz-blue);
    font-weight: 800;
}

/* Signature Pad Styles */
.sig-wrapper {
    margin-bottom: 24px;
}

.sig-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}

.sig-pad-container {
    background: #fff;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    position: relative;
    touch-action: none;
}

#signature-pad {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.sig-controls {
    text-align: right;
    margin-top: 6px;
}

.jz-btn-clear {
    background: none;
    border: none;
    color: #64748b;
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}

.jz-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    font-family: var(--jz-font-body);
}

.jz-input:focus {
    border-color: var(--jz-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.jz-checkbox-wrapper {
    margin: 16px 0 24px;
}

.jz-checkbox-label {
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.jz-checkbox-label a {
    color: var(--jz-blue);
    text-decoration: underline;
}