﻿/* ============================================
   LEGEND EXPRESS MOVING QUOTE FORM - PLUGIN STYLES
   Red & White Theme - Fully Responsive
   ============================================ */

.lemqf-form-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.lemqf-form-header {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #fff;
    padding: 40px 30px;
    text-align: center;
}

.lemqf-form-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
}

.lemqf-form-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

/* Progress Bar */
.lemqf-progress-container {
    background: #f8f8f8;
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.lemqf-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}

.lemqf-progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
}

.lemqf-progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC143C 0%, #8B0000 100%);
    transition: width 0.4s ease;
    width: 0%;
}

.lemqf-progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.lemqf-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lemqf-progress-step.active .lemqf-step-circle {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #fff;
    transform: scale(1.1);
}

.lemqf-progress-step.completed .lemqf-step-circle {
    background: #28a745;
    color: #fff;
}

.lemqf-step-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.lemqf-progress-step.active .lemqf-step-label {
    color: #DC143C;
    font-weight: 700;
}

/* Form Body */
.lemqf-form-body {
    padding: 40px 30px;
}

.lemqf-form-step {
    display: none;
}

.lemqf-form-step.active {
    display: block;
    animation: lemqfFadeIn 0.5s ease;
}

@keyframes lemqfFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lemqf-step-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    margin-top: 0;
}

.lemqf-step-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

/* Form Groups */
.lemqf-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.lemqf-form-grid.full {
    grid-template-columns: 1fr;
}

.lemqf-form-group {
    margin-bottom: 20px;
}

.lemqf-form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.lemqf-required {
    color: #DC143C;
}

.lemqf-form-input,
.lemqf-form-select,
.lemqf-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.lemqf-form-input:focus,
.lemqf-form-select:focus,
.lemqf-form-textarea:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.lemqf-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.lemqf-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.lemqf-error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.lemqf-form-input.error,
.lemqf-form-select.error {
    border-color: #dc3545;
}

.lemqf-form-input.error + .lemqf-error-message,
.lemqf-form-select.error + .lemqf-error-message {
    display: block;
}

/* Radio and Checkbox Groups */
.lemqf-radio-group,
.lemqf-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lemqf-radio-option,
.lemqf-checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lemqf-radio-option:hover,
.lemqf-checkbox-option:hover {
    border-color: #DC143C;
    background: #fff5f5;
}

.lemqf-radio-option input,
.lemqf-checkbox-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #DC143C;
}

.lemqf-radio-option.selected,
.lemqf-checkbox-option.selected {
    border-color: #DC143C;
    background: #fff5f5;
}

/* Conditional Fields */
.lemqf-conditional-field {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    border-left: 4px solid #DC143C;
}

.lemqf-conditional-field.show {
    display: block;
    animation: lemqfSlideDown 0.3s ease;
}

@keyframes lemqfSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Navigation Buttons */
.lemqf-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.lemqf-btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lemqf-btn-prev {
    background: #f0f0f0;
    color: #666;
}

.lemqf-btn-prev:hover {
    background: #e0e0e0;
}

.lemqf-btn-next,
.lemqf-btn-submit {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.lemqf-btn-next:hover,
.lemqf-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.lemqf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Message */
.lemqf-success-message {
    display: none;
    text-align: center;
    padding: 60px 30px;
}

.lemqf-success-message.show {
    display: block;
}

.lemqf-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: lemqfScaleIn 0.5s ease;
}

.lemqf-success-icon i {
    font-size: 40px;
    color: #fff;
}

@keyframes lemqfScaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.lemqf-success-message h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.lemqf-success-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Help Text */
.lemqf-help-text {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
    font-style: italic;
}

/* Loading Spinner */
.lemqf-loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.lemqf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DC143C;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: lemqfSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes lemqfSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lemqf-form-header h1 {
        font-size: 24px;
    }
    
    .lemqf-form-grid,
    .lemqf-radio-group,
    .lemqf-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .lemqf-progress-steps {
        flex-wrap: wrap;
    }
    
    .lemqf-step-label {
        font-size: 10px;
    }
    
    .lemqf-form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .lemqf-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lemqf-form-container {
        margin: 20px 10px;
    }
    
    .lemqf-form-body {
        padding: 30px 20px;
    }
}
