/**
 * Frontend Styles
 *
 * @package Menage_Qualite_Custom
 */

/* ==========================================================================
   Plugin Frontend Styles
   ========================================================================== */

/* Add your custom frontend CSS here */

/* ==========================================================================
   Quote Request Form Styles
   ========================================================================== */

.mqc-quote-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Messages */
#mqc-quote-messages {
    margin-bottom: 20px;
}

.mqc-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

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

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

/* Form Sections */
.mqc-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.mqc-form-section:last-of-type {
    border-bottom: none;
}

.mqc-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* Form Rows and Fields */
.mqc-form-row {
    margin-bottom: 20px;
}

.mqc-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .mqc-form-row-2col {
        grid-template-columns: 1fr;
    }
}

.mqc-form-field {
    margin-bottom: 0;
}

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

.mqc-form-field .required {
    color: #dc3545;
    font-weight: 600;
}

.mqc-form-field input[type="text"],
.mqc-form-field input[type="email"],
.mqc-form-field input[type="tel"],
.mqc-form-field select,
.mqc-form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.mqc-form-field input[type="text"]:focus,
.mqc-form-field input[type="email"]:focus,
.mqc-form-field input[type="tel"]:focus,
.mqc-form-field select:focus,
.mqc-form-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mqc-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.mqc-form-field input::placeholder,
.mqc-form-field textarea::placeholder {
    color: #999;
}

/* Form Actions */
.mqc-form-actions {
    margin-top: 30px;
    text-align: center;
}

.mqc-submit-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #2271b1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.mqc-submit-btn:hover {
    background-color: #135e96;
    transform: translateY(-2px);
}

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

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

.mqc-loading {
    display: inline-block;
    margin-left: 15px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .mqc-quote-form-wrapper {
        padding: 20px;
    }

    .mqc-form-section h3 {
        font-size: 18px;
    }

    .mqc-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* ==========================================================================
   Offer Acceptance Page Styles
   ========================================================================== */

.mqc-offer-page-wrapper {
    min-height: 80vh;
    padding: 40px 20px;
    background: #f5f5f5;
}

.mqc-offer-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mqc-offer-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.mqc-offer-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: white;
}

.mqc-client-name {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

.mqc-offer-details {
    padding: 40px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.mqc-offer-details h2,
.mqc-offer-actions h2 {
    margin-top: 0;
    color: #2271b1;
    font-size: 24px;
}

.mqc-offer-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .mqc-offer-info-grid {
        grid-template-columns: 1fr;
    }
}

.mqc-offer-info-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #2271b1;
}

.mqc-offer-label {
    display: block;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mqc-offer-value {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.mqc-offer-price {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.mqc-price-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.mqc-price-amount {
    display: block;
    font-size: 48px;
    color: #2271b1;
    font-weight: 700;
}

.mqc-offer-description {
    margin: 30px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 6px;
}

.mqc-offer-description h3 {
    margin-top: 0;
    color: #2271b1;
    font-size: 20px;
}

.mqc-offer-description p {
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.mqc-offer-validity {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #856404;
}

.mqc-offer-actions {
    padding: 40px 30px;
}

.mqc-offer-actions p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.mqc-offer-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .mqc-offer-buttons {
        flex-direction: column;
    }
}

.mqc-offer-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.mqc-accept-btn {
    background: #00a32a;
    color: white;
}

.mqc-accept-btn:hover {
    background: #008a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
}

.mqc-decline-btn {
    background: #d63638;
    color: white;
}

.mqc-decline-btn:hover {
    background: #b52b2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.3);
}

.mqc-cancel-btn {
    background: #6c757d;
    color: white;
}

.mqc-cancel-btn:hover {
    background: #5a6268;
}

.mqc-offer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

#mqc-decline-reason-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff5f5;
    border: 2px solid #d63638;
    border-radius: 6px;
}

#mqc-decline-reason-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

#mqc-decline-reason {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.mqc-decline-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .mqc-decline-buttons {
        flex-direction: column;
    }
}

.mqc-already-responded {
    padding: 40px 30px;
    text-align: center;
}

.mqc-already-responded h2 {
    margin-top: 0;
    font-size: 28px;
}

.mqc-message.info {
    background-color: #e7f3ff;
    border: 1px solid #2271b1;
    color: #135e96;
    padding: 20px;
    border-radius: 6px;
}

/* Example: Contact Button Styles */
.mqc-contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mqc-contact-btn:hover {
    background-color: #005177;
    color: #ffffff;
}

/* ==========================================================================
   GDPR Consent Section
   ========================================================================== */

.mqc-consent-section {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 25px !important;
}

.mqc-consent-section h3 {
    color: #495057;
    font-size: 18px;
    margin-bottom: 15px;
}

.mqc-consent-field {
    margin-bottom: 0 !important;
}

.mqc-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 15px;
}

.mqc-consent-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.mqc-consent-text {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.mqc-consent-text .required {
    color: #dc3545;
    font-weight: bold;
}

.mqc-consent-note {
    font-size: 13px;
    color: #6c757d;
    margin: 10px 0 0 30px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    line-height: 1.5;
}

/* ==========================================================================
   reCAPTCHA Notice
   ========================================================================== */

.mqc-recaptcha-notice {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.mqc-recaptcha-notice small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.5;
}

.mqc-recaptcha-notice a {
    color: #0073aa;
    text-decoration: none;
}

.mqc-recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Adjust form actions spacing when recaptcha notice is present */
.mqc-form-actions {
    margin-bottom: 20px;
}