/**
 * Moving Quote Calculator - Frontend Styles
 */

:root {
    --mqc-primary: #2563eb;
    --mqc-primary-hover: #1d4ed8;
    --mqc-success: #10b981;
    --mqc-danger: #ef4444;
    --mqc-gray-50: #f9fafb;
    --mqc-gray-100: #f3f4f6;
    --mqc-gray-200: #e5e7eb;
    --mqc-gray-300: #d1d5db;
    --mqc-gray-600: #4b5563;
    --mqc-gray-700: #374151;
    --mqc-gray-900: #111827;
    --mqc-border-radius: 8px;
    --mqc-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --mqc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Container */
.mqc-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Progress Bar */
.mqc-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.mqc-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--mqc-gray-200);
    z-index: 0;
}

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

.mqc-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mqc-gray-200);
    color: var(--mqc-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mqc-progress-step.active .mqc-progress-circle {
    background: var(--mqc-primary);
    color: white;
    transform: scale(1.1);
}

.mqc-progress-step.completed .mqc-progress-circle {
    background: var(--mqc-success);
    color: white;
}

.mqc-progress-step.completed .mqc-progress-circle::after {
    content: '✓';
}

.mqc-progress-step span {
    font-size: 14px;
    color: var(--mqc-gray-600);
    font-weight: 500;
}

.mqc-progress-step.active span {
    color: var(--mqc-primary);
    font-weight: 600;
}

/* Form */
.mqc-form {
    background: white;
    border-radius: var(--mqc-border-radius);
    box-shadow: var(--mqc-shadow-lg);
    padding: 40px;
    transition: opacity 0.3s ease;
}

.mqc-step {
    display: none;
}

.mqc-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mqc-step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mqc-gray-900);
    margin: 0 0 30px 0;
    text-align: center;
}

/* Field Groups */
.mqc-field-group {
    margin-bottom: 24px;
}

.mqc-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mqc-gray-700);
    margin-bottom: 8px;
}

.mqc-required {
    color: var(--mqc-danger);
}

/* Inputs */
.mqc-input,
.mqc-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--mqc-gray-200);
    border-radius: var(--mqc-border-radius);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mqc-input:focus,
.mqc-textarea:focus {
    outline: none;
    border-color: var(--mqc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mqc-input-error {
    border-color: var(--mqc-danger) !important;
}

.mqc-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.mqc-textarea {
    resize: vertical;
    min-height: 100px;
}

.mqc-hint {
    display: block;
    font-size: 13px;
    color: var(--mqc-gray-600);
    margin-top: 6px;
}

.mqc-error {
    display: block;
    font-size: 13px;
    color: var(--mqc-danger);
    margin-top: 6px;
    min-height: 18px;
}

/* Buttons */
.mqc-button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.mqc-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--mqc-border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mqc-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mqc-shadow-lg);
}

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

.mqc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mqc-btn-primary {
    background: var(--mqc-primary);
    color: white;
}

.mqc-btn-primary:hover {
    background: var(--mqc-primary-hover);
}

.mqc-btn-secondary {
    background: var(--mqc-gray-200);
    color: var(--mqc-gray-700);
}

.mqc-btn-secondary:hover {
    background: var(--mqc-gray-300);
}

.mqc-btn-success {
    background: var(--mqc-success);
    color: white;
}

.mqc-btn-success:hover {
    background: #059669;
}

.mqc-arrow {
    font-size: 18px;
}

/* Spinner */
.mqc-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.mqc-spinner.active {
    display: block;
}

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

/* Result Section */
.mqc-result {
    background: white;
    border-radius: var(--mqc-border-radius);
    box-shadow: var(--mqc-shadow-lg);
    padding: 40px;
    text-align: center;
}

.mqc-result-content {
    animation: fadeInUp 0.5s ease;
}

.mqc-result-icon {
    width: 60px;
    height: 60px;
    background: var(--mqc-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.mqc-result h3 {
    font-size: 28px;
    color: var(--mqc-gray-900);
    margin: 0 0 30px 0;
}

.mqc-quote-summary {
    text-align: left;
}

.mqc-quote-price {
    background: linear-gradient(135deg, var(--mqc-primary), #1d4ed8);
    color: white;
    padding: 30px;
    border-radius: var(--mqc-border-radius);
    margin-bottom: 30px;
    text-align: center;
}

.mqc-price-label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.mqc-price-value {
    display: block;
    font-size: 48px;
    font-weight: 700;
}

.mqc-quote-breakdown {
    background: var(--mqc-gray-50);
    padding: 20px;
    border-radius: var(--mqc-border-radius);
    margin-bottom: 20px;
}

.mqc-quote-breakdown h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--mqc-gray-900);
}

.mqc-quote-breakdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mqc-quote-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--mqc-gray-200);
}

.mqc-quote-breakdown li:last-child {
    border-bottom: none;
}

.mqc-quote-info {
    margin: 20px 0;
    padding: 20px;
    background: var(--mqc-gray-50);
    border-radius: var(--mqc-border-radius);
}

.mqc-quote-info p {
    margin: 8px 0;
    color: var(--mqc-gray-700);
}

.mqc-quote-notice {
    background: #dbeafe;
    padding: 20px;
    border-radius: var(--mqc-border-radius);
    margin: 20px 0;
}

.mqc-quote-notice p {
    margin: 8px 0;
    color: var(--mqc-gray-700);
}

.mqc-new-quote {
    margin-top: 20px;
}

/* Shake Animation */
.mqc-shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .mqc-container {
        padding: 15px;
        margin: 20px auto;
    }

    .mqc-form,
    .mqc-result {
        padding: 25px 20px;
    }

    .mqc-step-title {
        font-size: 20px;
    }

    .mqc-progress-bar::before {
        left: 30px;
        right: 30px;
    }

    .mqc-progress-step span {
        font-size: 12px;
    }

    .mqc-progress-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .mqc-button-group {
        flex-direction: column;
    }

    .mqc-btn {
        width: 100%;
    }

    .mqc-price-value {
        font-size: 36px;
    }
}


