/**
 * Public CSS for Fresh Request Quote Plugin
 */

.frq-quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.frq-form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.frq-quote-form {
    width: 100%;
}

.frq-form-messages {
    margin-bottom: 20px;
}

.frq-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.frq-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.frq-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.frq-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.frq-form-group {
    flex: 1;
    min-width: 250px;
}

.frq-form-group-full {
    flex: 100%;
}

.frq-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.frq-form-group .required {
    color: #e74c3c;
    font-weight: bold;
}

.frq-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.frq-form-control:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.frq-form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.frq-form-control::placeholder {
    color: #999;
    opacity: 1;
}

textarea.frq-form-control {
    resize: vertical;
    min-height: 120px;
}

select.frq-form-control {
    cursor: pointer;
}

.frq-recaptcha-container {
    margin: 20px 0;
    text-align: center;
}

.frq-submit-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.frq-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.frq-submit-btn:active {
    transform: translateY(0);
}

.frq-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .frq-quote-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .frq-form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .frq-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .frq-form-group {
        min-width: 100%;
    }
    
    .frq-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .frq-quote-form-container {
        margin: 5px;
        padding: 10px;
    }
    
    .frq-form-title {
        font-size: 20px;
    }
    
    .frq-submit-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Loading Animation */
.frq-submit-btn:disabled .btn-loading {
    display: inline;
}

.frq-submit-btn:disabled .btn-text {
    display: none;
}

/* Accessibility Improvements */
.frq-form-control:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.frq-submit-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .frq-form-control {
        border-width: 3px;
    }
    
    .frq-message-success {
        background-color: #000;
        color: #fff;
    }
    
    .frq-message-error {
        background-color: #fff;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .frq-form-control,
    .frq-submit-btn {
        transition: none;
    }
    
    .frq-submit-btn:hover:not(:disabled) {
        transform: none;
    }
}
