/**
 * Silva CRM Calculator Styles
 * Modern, responsive design for calculator wizards
 */

/* Calculator Container */
.silva-calculator-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.silva-calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.silva-calculator-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.silva-calculator-header p {
    font-size: 18px;
    color: #646970;
    margin: 0;
}

/* Progress Bar */
.silva-calculator-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #3582c4);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #646970;
    font-weight: 600;
}

/* Form Layout */
.silva-calculator-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Steps */
.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-step h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.calculator-step > p {
    font-size: 16px;
    color: #646970;
    margin: 0 0 30px 0;
}

/* Option Cards */
.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    position: relative;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.1);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card input[type="radio"]:checked + .option-content {
    color: #2271b1;
}

.option-card input[type="radio"]:checked ~ .option-content::before {
    content: "✓";
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-card input[type="radio"]:checked {
    & + .option-content {
        border-color: #2271b1;
    }
}

.option-card:has(input:checked) {
    border-color: #2271b1;
    background: #f0f6fc;
}

.option-content {
    position: relative;
}

.option-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 2px;
}

/* Scoped with !important to beat theme stylesheet specificity */
.option-card .option-description,
.option-card.option-card--checkbox .option-description {
    font-size: 14px;
    color: #646970;
    margin: 0 !important;
    display: none !important;
}

.option-card .option-description.info-visible,
.option-card.option-card--checkbox .option-description.info-visible {
    display: block !important;
    margin-bottom: 10px !important;
    padding-top: 8px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.15s ease;
}

/* "Details ▶" toggle pill — injected by JS as sibling after option title */
.option-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef4fb;
    border: 1px solid #c5d9ef;
    border-radius: 20px;
    padding: 5px 13px;
    margin: 4px 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    cursor: pointer;
    line-height: 1;
    min-height: 32px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.option-details-btn .details-chevron {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s;
    line-height: 1;
}
.option-details-btn.open .details-chevron {
    transform: rotate(90deg);
}
.option-details-btn:hover {
    background: #d6e8f7;
    border-color: #2271b1;
    color: #135e96;
}

/* Qty row — always visible inside option cards, never hidden with description */
.option-qty-row {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

/* Collapsible section toggles (Step 6 optional sections) */
.calc-collapse-section {
    margin-bottom: 12px;
}
.calc-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    transition: border-color 0.15s, color 0.15s;
}
.calc-toggle-btn:hover,
.calc-toggle-btn.open {
    border-color: #2271b1;
    color: #2271b1;
}
.calc-toggle-icon {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
    line-height: 1;
}
.calc-toggle-btn.open .calc-toggle-icon {
    transform: rotate(90deg);
}
.calc-toggle-hint {
    font-weight: 400;
    color: #888;
    font-size: 13px;
}
.calc-toggle-body {
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #f8f9fa;
    overflow: hidden;
}
.calc-toggle-body .option-group {
    padding: 16px;
}

/* Advanced toggle for Step 1 dimensions */
details.room-advanced-toggle > summary {
    list-style: none;
}
details.room-advanced-toggle > summary::-webkit-details-marker {
    display: none;
}

.option-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.step-navigation button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next,
.btn-submit {
    background: #2271b1;
    color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
    background: #135e96;
}

.btn-prev {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.btn-prev:hover {
    background: #f0f6fc;
}

.btn-submit {
    background: #00a32a;
}

.btn-submit:hover {
    background: #008a20;
}

/* Summary Panel — full-width below form */
.silva-calculator-summary {
    position: static;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px 40px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 32px;
}

.silva-calculator-summary h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #646970;
    margin: 0 0 20px 0;
}

.summary-breakdown {
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
}

.summary-row.total {
    border-top: 2px solid #2271b1;
    border-bottom: none;
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.summary-items h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1d2327;
}

.selected-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #646970;
}

.selected-items-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Modal */
.silva-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.silva-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.silva-modal-content h3 {
    font-size: 24px;
    color: #00a32a;
    margin: 0 0 16px 0;
}

.silva-modal-content p {
    font-size: 16px;
    color: #646970;
    margin: 0 0 12px 0;
}

.btn-close-modal {
    margin-top: 24px;
    padding: 12px 32px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-close-modal:hover {
    background: #135e96;
}

/* Enhanced Success Modal Styling */
.silva-modal-success {
    max-width: 580px;
    position: relative;
    padding: 0;
    text-align: left;
}

.modal-close-x {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #646970;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.modal-close-x:hover {
    background: #f0f0f0;
    color: #1d2327;
}

.success-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid #e3e8ef;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
}

.success-subtitle {
    font-size: 16px;
    color: #646970;
    margin: 0 0 16px 0 !important;
}

.estimate-number-display {
    font-size: 15px;
    color: #646970;
    margin: 0 !important;
}

.estimate-number-display strong {
    color: #014385;
    font-weight: 600;
}

.estimate-info-box {
    background: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 40px;
    line-height: 1.6;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #014385;
    font-weight: 600;
    font-size: 16px;
}

.info-icon {
    font-size: 20px;
}

.estimate-info-box p {
    font-size: 14px;
    color: #3c434a;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.estimate-info-box p:last-child {
    margin-bottom: 0;
}

.info-notice {
    font-size: 13px !important;
    color: #646970 !important;
    font-style: italic;
}

.modal-primary-action {
    padding: 0 40px 24px;
    text-align: center;
}

.btn-schedule-walkthrough {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 28px;
    background: #014385;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(1, 67, 133, 0.2);
}

.btn-schedule-walkthrough:hover {
    background: #0256a6;
    box-shadow: 0 4px 12px rgba(1, 67, 133, 0.3);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
}

.action-benefits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: #2e8b57;
    font-weight: 500;
}

.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.benefit-separator {
    color: #d0d0d0;
}

.modal-divider {
    position: relative;
    text-align: center;
    margin: 24px 40px;
    height: 1px;
    background: #e3e8ef;
}

.modal-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 16px;
    font-size: 13px;
    color: #8c8f94;
    font-weight: 500;
    text-transform: lowercase;
}

.cross-sell-card {
    background: #f4f7fb;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    padding: 24px 28px;
    margin: 0 40px 40px;
    text-align: center;
}

.cross-sell-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.cross-sell-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.cross-sell-card p {
    font-size: 14px;
    color: #646970;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.btn-cross-sell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #ffffff;
    color: #014385;
    border: 2px solid #014385;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cross-sell:hover {
    background: #014385;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(1, 67, 133, 0.2);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .silva-modal-success {
        max-width: calc(100vw - 32px);
        margin: 16px;
    }
    
    .success-header,
    .modal-primary-action,
    .cross-sell-card {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .estimate-info-box {
        margin-left: 24px;
        margin-right: 24px;
    }
    
    .modal-divider {
        margin-left: 24px;
        margin-right: 24px;
    }
    
    .action-benefits {
        flex-direction: column;
        gap: 6px;
    }
    
    .benefit-separator {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .silva-calculator-form {
        padding: 24px;
    }

    .silva-calculator-summary {
        padding: 24px;
    }
    
    .option-group {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column-reverse;
    }
    
    .step-navigation button {
        width: 100%;
    }
}

/* Desktop: summary as horizontal stat strip */
@media (min-width: 769px) {
    .summary-breakdown {
        display: flex;
        gap: 0;
        margin-bottom: 24px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }

    .summary-row {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px 24px;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        gap: 6px;
    }

    .summary-row:last-child {
        border-right: none;
    }

    .summary-row.total {
        border-top: none;
        margin-top: 0;
        background: #f0f6fc;
        font-size: 16px;
    }

    .summary-row span:first-child {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #646970;
    }

    .summary-row .summary-labor,
    .summary-row .summary-materials {
        font-size: 22px;
        font-weight: 700;
        color: #1d2327;
    }

    .summary-row.total .summary-total {
        font-size: 26px;
    }

    .selected-items-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 32px;
    }

    .selected-items-list li {
        flex: 0 1 auto;
        border-bottom: none;
        padding: 4px 0;
    }
}

/* Welcome Modal for Returning Customers */
.welcome-modal-content {
    max-width: 750px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.welcome-modal-content .modal-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8eaed;
}

.welcome-modal-content .modal-header h2 {
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-modal-content .modal-header p {
    color: #5f6368;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.estimate-section {
    margin-bottom: 32px;
}

.estimate-section h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.estimate-section h3 .section-icon {
    font-size: 22px;
}

.estimate-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 14px;
    border: 2px solid #e8eaed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    animation: slideInUp 0.4s ease-out backwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Staggered animation for cards */
.estimate-card:nth-child(1) { animation-delay: 0.05s; }
.estimate-card:nth-child(2) { animation-delay: 0.1s; }
.estimate-card:nth-child(3) { animation-delay: 0.15s; }
.estimate-card:nth-child(4) { animation-delay: 0.2s; }
.estimate-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estimate-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.draft-card::before {
    background: linear-gradient(180deg, #ff9800, #f57c00);
}

.completed-card::before {
    background: linear-gradient(180deg, #4CAF50, #388E3C);
}

.estimate-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.estimate-card:hover::before {
    width: 6px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Delete Button Styling */
.btn-delete-draft {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #e8eaed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    color: #5f6368;
    z-index: 2;
}

.btn-delete-draft:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-delete-draft:active {
    transform: scale(0.95);
}

.btn-delete-draft svg {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.btn-delete-draft:hover svg {
    stroke-width: 2.5;
}

.card-icon {
    font-size: 36px;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.estimate-card:hover .card-icon {
    transform: scale(1.05);
}

.estimate-info {
    flex: 1;
    min-width: 0;
}

.estimate-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.estimate-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.draft-badge {
    background: linear-gradient(135deg, #fff9e6, #ffe69c);
    color: #b45309;
    border: 1px solid #fbbf24;
}

.completed-badge {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #166534;
    border: 1px solid #86efac;
}

.estimate-time {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.estimate-card h4 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.estimate-meta {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.estimate-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 6px 0 0 0;
}

.progress-info {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f3f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-medium {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-high {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-text {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.estimate-card .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.estimate-card .btn .btn-icon {
    font-size: 15px;
}

.btn-resume-draft {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-resume-draft:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-resume-draft:active {
    transform: translateY(0);
}

.btn-edit-estimate {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-edit-estimate:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn-edit-estimate:active {
    transform: translateY(0);
}

.estimate-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8eaed;
    text-align: center;
}

.btn-start-fresh {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-start-fresh::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-start-fresh:hover::before {
    width: 300px;
    height: 300px;
}

.btn-start-fresh:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.btn-start-fresh:active {
    transform: translateY(-1px);
}

.btn-start-fresh .btn-icon {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.estimate-summary {
    margin-top: 18px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Confirmation Dialog Styling */
.confirm-dialog .modal-content {
    max-width: 420px;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease-out;
}

.confirm-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.confirm-icon svg {
    width: 48px;
    height: 48px;
}

.confirm-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.confirm-modal-content p {
    font-size: 15px;
    color: #5f6368;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn {
    flex: 1;
    max-width: 160px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-cancel-delete {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel-delete:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-confirm-delete:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.confirm-actions .btn:active {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .welcome-modal-content {
        max-width: 95%;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .welcome-modal-content .modal-header h2 {
        font-size: 24px;
    }
    
    .estimate-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px 16px;
        gap: 12px;
    }
    
    .btn-delete-draft {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .btn-delete-draft svg {
        width: 18px;
        height: 18px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
    
    .estimate-info {
        width: 100%;
    }
    
    .estimate-card .btn {
        width: 100%;
        justify-content: center;
        margin: 0;
        padding: 14px 20px;
    }
    
    .estimate-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .estimate-card h4 {
        font-size: 16px;
    }
    
    .btn-start-fresh {
        width: 100%;
        justify-content: center;
        padding: 14px 32px;
    }
    
    .estimate-section h3 {
        font-size: 17px;
    }
    
    /* Confirmation Dialog Mobile */
    .confirm-dialog .modal-content {
        max-width: 90%;
        padding: 32px 24px;
    }
    
    .confirm-icon {
        width: 70px;
        height: 70px;
    }
    
    .confirm-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .confirm-modal-content h3 {
        font-size: 20px;
    }
    
    .confirm-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .confirm-actions .btn {
        max-width: none;
        width: 100%;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.loading-overlay .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    margin: 0;
}
