/* ==========================================================================
   Repair Service Quote Request - Stylesheet
   Inherits active theme colors, fonts, and responsive grid
   ========================================================================== */

.rsq-form-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
}

.rsq-form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.rsq-badge {
    display: inline-block;
    background: #fff0f5;
    color: #fc226a;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.rsq-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rsq-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Sections */
.rsq-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8fafc;
}

.rsq-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #fc226a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

/* Quick Select Device Pills */
.rsq-device-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rsq-device-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.rsq-device-pill:hover {
    border-color: #fc226a;
    color: #fc226a;
    background: #fff5f8;
}

.rsq-device-pill.active {
    background: #fc226a;
    border-color: #fc226a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(252, 34, 106, 0.35);
}

.rsq-pill-icon {
    font-size: 15px;
}

/* Grid Layouts */
.rsq-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
}

.rsq-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.rsq-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Form Controls */
.rsq-field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.rsq-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.rsq-req {
    color: #fc226a;
    font-weight: 700;
}

.rsq-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.rsq-input:focus {
    border-color: #fc226a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 34, 106, 0.15);
}

.rsq-input.rsq-has-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.rsq-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

.rsq-textarea {
    resize: vertical;
    min-height: 90px;
}

.rsq-error-hint {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

/* File Upload Dropzone */
.rsq-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsq-file-dropzone:hover,
.rsq-file-dropzone.dragover {
    border-color: #fc226a;
    background: #fff5f8;
}

.rsq-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rsq-dropzone-icon {
    font-size: 26px;
    margin-bottom: 4px;
}

.rsq-dropzone-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.rsq-dropzone-sub {
    font-size: 12px;
    color: #64748b;
}

.rsq-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 14px;
    display: inline-flex;
    margin: 0 auto;
}

.rsq-preview-icon {
    font-size: 16px;
}

.rsq-preview-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsq-preview-size {
    font-size: 12px;
    color: #64748b;
}

.rsq-file-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 0 4px;
    line-height: 1;
}

.rsq-file-remove:hover {
    color: #b91c1c;
}

/* Submit Action Row */
.rsq-submit-row {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rsq-submit-btn {
    background: linear-gradient(135deg, #fc226a 0%, #e0175b 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 44px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(252, 34, 106, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    width: auto;
    min-width: 280px;
}

.rsq-submit-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.rsq-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rsq-spinner-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rsq-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.rsq-privacy-notice {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    text-align: center;
}

/* Alerts */
.rsq-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.rsq-alert-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.rsq-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.rsq-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Service CTA Banner (Single Service Posts) */
.rsq-service-cta-banner {
    background: #111827;
    color: #ffffff;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 40px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.rsq-service-cta-banner h3 {
    color: #ffffff !important;
    font-size: 22px;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.rsq-service-cta-banner p {
    color: #94a3b8 !important;
    font-size: 14px;
    margin: 0;
}

.rsq-cta-btn-wrap {
    flex-shrink: 0;
}

/* Service Card Quote Button */
.rsq-quote-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #fc226a;
    color: #ffffff !important;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 34, 106, 0.25);
    margin-top: 8px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.rsq-quote-btn:hover {
    background: #000000;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile)
   ========================================================================== */

@media (max-width: 991px) {
    .rsq-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .rsq-service-cta-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .rsq-form-wrapper {
        padding: 24px 16px;
        margin: 20px 0;
    }

    .rsq-title {
        font-size: 22px;
    }

    .rsq-grid-2,
    .rsq-grid-3 {
        grid-template-columns: 1fr;
    }

    .rsq-device-pills {
        justify-content: center;
    }

    .rsq-device-pill {
        font-size: 13px;
        padding: 6px 12px;
    }

    .rsq-submit-btn {
        width: 100%;
        min-width: 100%;
        padding: 14px 20px;
    }
}
