.carpet-quote-calculator {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cqc-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.cqc-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.cqc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cqc-progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cqc-progress-step.active .cqc-progress-number,
.cqc-progress-step.completed .cqc-progress-number {
    background: #2c5f2d;
    border-color: #2c5f2d;
    color: #fff;
}

.cqc-progress-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.cqc-progress-step.active .cqc-progress-label {
    color: #2c5f2d;
    font-weight: 600;
}

.cqc-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.cqc-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.cqc-step {
    display: none;
}

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

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

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

.cqc-step h2 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 28px;
}

.cqc-step-description {
    color: #666;
    margin: 0 0 30px 0;
}

.cqc-service-grid,
.cqc-customer-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cqc-service-card,
.cqc-customer-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cqc-service-card:hover,
.cqc-customer-card:hover {
    border-color: #2c5f2d;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.15);
    transform: translateY(-2px);
}

.cqc-service-card.selected,
.cqc-customer-card.selected {
    background: #f0f8f0;
    border-color: #2c5f2d;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
}

.cqc-service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #2c5f2d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.cqc-service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cqc-service-icon,
.cqc-customer-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.cqc-service-card h3,
.cqc-customer-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.cqc-service-card p,
.cqc-customer-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cqc-commercial-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.cqc-commercial-notice p {
    margin: 0;
    color: #856404;
}

.cqc-room-guidance {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.cqc-room-guidance h4 {
    margin: 0 0 10px 0;
    color: #0c5460;
}

.cqc-room-guidance ul {
    margin: 0;
    padding-left: 20px;
}

.cqc-room-guidance li {
    color: #0c5460;
    margin-bottom: 5px;
}

.cqc-field-group {
    margin-bottom: 20px;
}

.cqc-service-details-carpet {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .cqc-service-details-carpet {
        grid-template-columns: 1fr 1fr;
    }
}

.cqc-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    position: relative;
}

.cqc-info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #2c5f2d;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    margin-left: 6px;
    cursor: help;
    font-weight: bold;
    position: relative;
    vertical-align: middle;
}

.cqc-info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.cqc-info-icon:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}

.cqc-field-group .required {
    color: #dc3545;
}

.cqc-field-group input[type="text"],
.cqc-field-group input[type="email"],
.cqc-field-group input[type="tel"],
.cqc-field-group input[type="date"],
.cqc-field-group input[type="number"],
.cqc-field-group select,
.cqc-field-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.cqc-field-group input:focus,
.cqc-field-group select:focus,
.cqc-field-group textarea:focus {
    outline: none;
    border-color: #2c5f2d;
}

.cqc-quantity-input {
    max-width: 120px;
}

.cqc-checkbox-group,
.cqc-radio-group {
    margin-bottom: 15px;
}

.cqc-checkbox-group label,
.cqc-radio-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.cqc-checkbox-group label:hover,
.cqc-radio-group label:hover {
    border-color: #2c5f2d;
    background: #f0f8f0;
}

.cqc-checkbox-group input[type="checkbox"],
.cqc-radio-group input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cqc-checkbox-group span,
.cqc-radio-group span {
    font-weight: 500;
    color: #333;
}

.cqc-upload-area {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.cqc-upload-btn {
    background: #2c5f2d;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cqc-upload-btn:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.cqc-upload-info {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

.cqc-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.cqc-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.cqc-photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.cqc-photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.3s ease;
}

.cqc-photo-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.cqc-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.cqc-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.cqc-btn-back {
    background: #6c757d;
    color: #fff;
}

.cqc-btn-back:hover {
    background: #5a6268;
}

.cqc-btn-next,
.cqc-btn-submit {
    background: #2c5f2d;
    color: #fff;
}

.cqc-btn-next:hover,
.cqc-btn-submit:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.cqc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.cqc-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.cqc-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cqc-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cqc-estimate-sidebar {
    position: sticky;
    top: 20px;
}

.cqc-estimate-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 2px solid #2c5f2d;
}

.cqc-estimate-box h3 {
    margin: 0 0 20px 0;
    color: #2c5f2d;
    font-size: 24px;
    text-align: center;
}

.cqc-estimate-note {
    text-align: center;
    color: #666;
    font-style: italic;
}

.cqc-estimate-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.cqc-estimate-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c5f2d;
}

.cqc-breakdown-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: #2c5f2d;
    padding: 12px 0;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.cqc-breakdown-toggle:hover {
    background: #f0f8f0;
    color: #1e4620;
}

.cqc-breakdown-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.cqc-breakdown-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.cqc-breakdown-details {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cqc-breakdown-items {
    margin-bottom: 10px;
}

.cqc-service-section {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #2c5f2d;
    font-size: 14px;
}

.cqc-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}

.cqc-breakdown-item span:first-child {
    padding-left: 15px;
}

.cqc-breakdown-item span:last-child {
    font-weight: 600;
    color: #333;
}

.cqc-minimum-notice {
    background: #fff3cd;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 13px;
    color: #856404;
}

.cqc-disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Hide disclaimer on small screens by default */
@media (max-width: 1023px) {
    .cqc-breakdown-details .cqc-disclaimer {
        display: none;
    }

    /* Show when breakdown is expanded */
    .cqc-breakdown-details.expanded .cqc-disclaimer {
        display: block;
    }
}

/* Always show on larger screens */
@media (min-width: 1024px) {
    .cqc-breakdown-details .cqc-disclaimer {
        display: block;
    }
}

.cqc-commercial-guide-notice {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.cqc-commercial-guide-notice p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

@media (max-width: 992px) {
    .cqc-content-wrapper {
        grid-template-columns: 1fr;
    }

    .cqc-estimate-sidebar {
        position: static;
        order: -1;
    }

    .cqc-progress-bar {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .cqc-progress-label {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .carpet-quote-calculator {
        margin: 20px auto;
    }

    .cqc-form-container {
        padding: 25px;
    }

    .cqc-service-grid,
    .cqc-customer-type-grid {
        grid-template-columns: 1fr;
    }

    .cqc-step h2 {
        font-size: 24px;
    }

    .cqc-navigation {
        flex-direction: column;
    }

    .cqc-btn {
        width: 100%;
    }

    .cqc-progress-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.cqc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cqc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cqc-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cqc-package-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cqc-package-card:hover {
    border-color: #2c5f2d;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.15);
    transform: translateY(-2px);
}

.cqc-package-card h4 {
    margin: 0 0 15px 0;
    color: #2c5f2d;
    font-size: 20px;
    font-weight: 700;
}

.cqc-package-price {
    font-size: 32px;
    font-weight: bold;
    color: #2c5f2d;
    margin: 15px 0;
}

.cqc-package-price em {
    font-size: 14px;
    font-weight: normal;
    color: #856404;
    display: block;
    margin-top: 5px;
}

.cqc-package-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
    min-height: 60px;
}

.cqc-package-select-btn {
    background: #2c5f2d;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.cqc-package-select-btn:hover {
    background: #1e4620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.3);
}

.cqc-discount-line {
    color: #28a745;
    font-weight: 600;
}

.cqc-savings-highlight {
    background: #d4edda;
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.cqc-savings-highlight strong {
    color: #155724;
    font-size: 18px;
}

@media (max-width: 768px) {
    .cqc-package-grid {
        grid-template-columns: 1fr;
    }
}