/**
 * Quote Request Panel Styles
 * Maxwell Client Hub - Full Width Slide Up Panel
 */

/* Panel Base - Hidden by default */
.mch-quote-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.mch-quote-panel.active {
    pointer-events: all;
}

/* Overlay */
.mch-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.4s ease;
}

.mch-quote-panel.active .mch-panel-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* Panel Container - Slides up from bottom */
.mch-panel-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.mch-quote-panel.active .mch-panel-container {
    transform: translateY(0);
}

/* Panel Content */
.mch-panel-content {
    background: #0a0a0a;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 40px 60px 50px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(139, 95, 255, 0.1);
}

/* Close Button */
.mch-panel-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mch-panel-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Drag Handle Indicator */
.mch-panel-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Header */
.mch-panel-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.mch-panel-header h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff 0%, #8b5fff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mch-panel-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin: 0;
}

/* Form Tabs */
.mch-form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mch-tab-btn {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mch-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mch-tab-btn.active {
    background: linear-gradient(135deg, #8b5fff 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 95, 255, 0.4);
}

/* Tab Content */
.mch-tab-content {
    display: none;
}

.mch-tab-content.active {
    display: block;
    animation: mch-fadeIn 0.3s ease;
}

@keyframes mch-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Sections */
.mch-form-section {
    margin-bottom: 25px;
}

.mch-form-section h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Grid */
.mch-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mch-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mch-form-grid-4 {
    grid-template-columns: 120px 1fr 1fr 1fr;
}

@media (max-width: 900px) {
    .mch-form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mch-form-grid,
    .mch-form-grid-3,
    .mch-form-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Form Groups */
.mch-form-group {
    margin-bottom: 0;
}

.mch-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.mch-form-group label .required {
    color: #ef4444;
}

.mch-form-group label .optional {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* Inputs */
.mch-form-group input[type="text"],
.mch-form-group input[type="email"],
.mch-form-group input[type="tel"],
.mch-form-group input[type="url"],
.mch-form-group input[type="date"],
.mch-form-group select,
.mch-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mch-form-group input::placeholder,
.mch-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.mch-form-group input:focus,
.mch-form-group select:focus,
.mch-form-group textarea:focus {
    outline: none;
    border-color: #8b5fff;
    background: rgba(139, 95, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(139, 95, 255, 0.15);
}

.mch-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' 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 16px center;
    padding-right: 45px;
}

.mch-form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.mch-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkboxes & Radios */
.mch-services-checkboxes,
.mch-package-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.mch-checkbox-label,
.mch-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mch-checkbox-label:hover,
.mch-radio-label:hover {
    background: rgba(139, 95, 255, 0.1);
    border-color: rgba(139, 95, 255, 0.3);
}

.mch-checkbox-label input,
.mch-radio-label input {
    display: none;
}

.mch-checkbox-custom,
.mch-radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mch-radio-custom {
    border-radius: 50%;
}

.mch-checkbox-label input:checked + .mch-checkbox-custom,
.mch-radio-label input:checked + .mch-radio-custom {
    background: linear-gradient(135deg, #8b5fff 0%, #a855f7 100%);
    border-color: #8b5fff;
}

.mch-checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.mch-checkbox-label input:checked + .mch-checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.mch-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.mch-radio-label input:checked + .mch-radio-custom::after {
    transform: scale(1);
}

.mch-checkbox-text,
.mch-radio-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Form Footer */
.mch-form-footer {
    margin-top: 35px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mch-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 50px;
    background: #000;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
}

.mch-submit-btn:hover {
    background: #111;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.mch-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mch-spinner {
    width: 20px;
    height: 20px;
    animation: mch-spin 1s linear infinite;
}

@keyframes mch-spin {
    100% { transform: rotate(360deg); }
}

.mch-privacy-note {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    margin-top: 15px;
}

/* Success State */
.mch-form-success {
    text-align: center;
    padding: 50px 20px;
}

.mch-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.mch-success-icon svg {
    width: 45px;
    height: 45px;
    color: #fff;
}

.mch-form-success h3 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 12px 0;
}

.mch-form-success p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0 0 30px 0;
}

.mch-close-success-btn {
    padding: 14px 35px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mch-close-success-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Error State */
.mch-form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.mch-error-message {
    color: #ef4444;
    font-size: 14px;
    margin: 0;
}

/* Scrollbar */
.mch-panel-content::-webkit-scrollbar {
    width: 8px;
}

.mch-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.mch-panel-content::-webkit-scrollbar-thumb {
    background: rgba(139, 95, 255, 0.4);
    border-radius: 4px;
}

.mch-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 95, 255, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mch-panel-content {
        padding: 35px 25px 40px;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .mch-panel-header h2 {
        font-size: 26px;
    }

    .mch-panel-header p {
        font-size: 14px;
    }

    .mch-form-tabs {
        max-width: 100%;
    }

    .mch-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .mch-services-checkboxes,
    .mch-package-options {
        grid-template-columns: 1fr;
    }

    .mch-panel-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .mch-submit-btn {
        width: 100%;
        padding: 16px 30px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .mch-panel-content {
        padding: 30px 20px 35px;
    }
}
