/* Webvina Cost Calculator Styles - Updated for Reference Design */

.wvcc-calculator-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wvcc-calculator-wrap *,
.wvcc-calculator-wrap *::before,
.wvcc-calculator-wrap *::after {
    box-sizing: border-box;
}

/* Step Navigation */
.wvcc-step {
    display: none;
}

.wvcc-step.wvcc-active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Card Styles */
.wvcc-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.wvcc-card-header {
    background: #e63a27;
    padding: 16px;
    color: #fff;
    text-align: center;
}

.wvcc-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wvcc-card-content {
    padding: 30px;
}

/* Form Styles */
.wvcc-form {
    width: 100%;
}

.wvcc-field {
    margin-bottom: 20px;
}

.wvcc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wvcc-field input[type="number"],
.wvcc-field select {
    width: 100%;
    /* padding: 10px 15px; */
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.wvcc-field input[type="number"]:focus,
.wvcc-field select:focus {
    outline: none;
    border-color: #1e4a8a;
    box-shadow: 0 0 0 3px rgba(30, 74, 138, 0.1);
}

.wvcc-field input::placeholder {
    color: #999;
}

/* Help Text */
.wvcc-help-text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.wvcc-text-danger {
    color: #dc3545;
}

/* Columns */
.wvcc-columns {
    display: flex;
    gap: 15px;
    margin-bottom: 0px;
}

.wvcc-column {
    flex: 1;
}

/* Buttons */
.wvcc-button {
    padding: 5px 30px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wvcc-button-primary {
    background: #e63a27;
    color: #fff;
}

.wvcc-button-primary:hover {
    background: #163a6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 74, 138, 0.3);
}

.wvcc-button-reset {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.wvcc-button-reset:hover {
    background: #f8f9fa;
}

.wvcc-button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Results Header */
.wvcc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.wvcc-results-description {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/* House Visualization */
.wvcc-house-visual {
    width: 200px;
    flex-shrink: 0;
}

.wvcc-floor {
    background: #9ca3af;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
}

.wvcc-floor-3 {
    background: #a8b3c4;
}

.wvcc-floor-2 {
    background: #8b96a8;
}

.wvcc-floor-1 {
    background: #6e7a8c;
}

.wvcc-foundation {
    background: #374151;
    height: 6px;
    margin-top: 2px;
}

/* Packages Display */
.wvcc-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.wvcc-package {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wvcc-package-title {
    background: #f8f9fa;
    padding: 15px;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #e9ecef;
}

/* Results Table */
.wvcc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wvcc-table thead {
    background: #f8f9fa;
}

.wvcc-table th,
.wvcc-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.wvcc-table th {
    font-weight: 600;
    color: #495057;
    font-size: 11px;
}

.wvcc-table th:first-child,
.wvcc-table td:first-child {
    text-align: center;
    width: 40px;
}

.wvcc-table th:last-child,
.wvcc-table td:last-child {
    text-align: right;
}

.wvcc-table tbody tr:hover {
    background: #f8f9fa;
}

.wvcc-table .wvcc-total-row {
    background: #fff3cd;
    font-weight: 700;
}

.wvcc-table .wvcc-total-row td {
    border-top: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
}

.wvcc-table .wvcc-subtotal-row {
    background: #e7f3ff;
    font-weight: 600;
}

.wvcc-table .wvcc-grand-total-row {
    background: #ffc107;
    font-weight: 700;
    font-size: 13px;
}

.wvcc-table .wvcc-grand-total-row td {
    border-top: 3px solid #ff9800;
    border-bottom: 3px solid #ff9800;
    padding: 12px 8px;
}

/* Note */
.wvcc-note {
    text-align: center;
    font-size: 13px;
    color: #dc3545;
    margin: 20px 0;
}

/* Hidden Fields */
.wvcc-field.wvcc-hidden {
    display: none;
}

/* Loading State */
.wvcc-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wvcc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e4a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .wvcc-packages {
        grid-template-columns: 1fr;
    }

    .wvcc-results-header {
        flex-direction: column;
    }

    .wvcc-house-visual {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wvcc-columns {
        flex-direction: column;
        gap: 0;
    }

    .wvcc-card-content {
        padding: 20px 15px;
    }

    .wvcc-button {
        width: 100%;
        margin-bottom: 10px;
    }

    .wvcc-button-reset {
        margin-right: 0;
    }

    .wvcc-button-group {
        flex-direction: column-reverse;
    }

    .wvcc-table {
        font-size: 11px;
    }

    .wvcc-table th,
    .wvcc-table td {
        padding: 8px 5px;
    }
}