/* ==========================================================================
   QUOTE REQUEST MODAL STYLES
   ========================================================================== */

/* Modal Container */
.ts-quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ts-quote-modal.active {
    display: flex;
}

.ts-quote-modal.closing {
    display: flex;
    pointer-events: none;
}

/* Overlay */
.ts-quote-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Modal Content Container */
.ts-quote-modal-container {
    position: relative;
    background: linear-gradient(160deg, rgba(30, 30, 30, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.ts-quote-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--ts-silver, #b8b8b8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.ts-quote-modal-close:hover {
    background: rgba(232, 67, 147, 0.2);
    color: #e84393;
    border-color: rgba(232, 67, 147, 0.3);
}

/* Header */
.ts-quote-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ts-quote-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ts-white, #ffffff);
    margin: 0 0 8px 0;
}

.ts-quote-modal-subtitle {
    font-size: 0.9rem;
    color: var(--ts-silver, #b8b8b8);
    margin: 0;
}

/* Body */
.ts-quote-modal-body {
    padding: 25px 30px 30px;
}

/* Configuration Summary */
.ts-quote-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.ts-quote-summary-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ts-silver, #b8b8b8);
    margin-bottom: 15px;
}

.ts-quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ts-quote-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ts-quote-summary-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ts-quote-summary-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ts-white, #ffffff);
}

.ts-quote-summary-price .ts-quote-summary-value {
    color: #e84393;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Custom Dimensions Section */
.ts-quote-custom-size {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(232, 67, 147, 0.05);
    border: 1px solid rgba(232, 67, 147, 0.2);
    border-radius: 12px;
}

.ts-quote-custom-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ts-quote-custom-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e84393;
    cursor: pointer;
}

.ts-quote-custom-toggle label {
    font-size: 0.9rem;
    color: var(--ts-white, #ffffff);
    cursor: pointer;
}

/* Animated custom fields container */
.ts-quote-custom-fields {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease, padding-top 0.35s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
}

.ts-quote-custom-fields.active {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ts-quote-custom-fields-inner {
    overflow: hidden;
}

.ts-quote-note {
    font-size: 0.85rem;
    color: var(--ts-silver, #b8b8b8);
    margin: 0 0 15px 0;
}

/* Form Styles */
.ts-quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Phone Contact Option */
.ts-quote-phone-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(232, 67, 147, 0.08);
    border: 1px solid rgba(232, 67, 147, 0.2);
    border-radius: 10px;
    margin-bottom: 5px;
}

.ts-quote-phone-label {
    font-size: 0.9rem;
    color: var(--ts-silver, #b8b8b8);
}

.ts-quote-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e84393;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ts-quote-phone-link:hover {
    color: #ff6ab0;
}

.ts-quote-phone-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ts-quote-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ts-quote-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ts-quote-field label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ts-silver, #b8b8b8);
}

.ts-quote-field label .required {
    color: #e84393;
}

.ts-quote-field label .optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.ts-quote-field input,
.ts-quote-field textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--ts-white, #ffffff);
    transition: all 0.3s ease;
}

.ts-quote-field input::placeholder,
.ts-quote-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ts-quote-field input:focus,
.ts-quote-field textarea:focus {
    outline: none;
    border-color: rgba(232, 67, 147, 0.5);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

.ts-quote-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Actions */
.ts-quote-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.ts-quote-actions .ts-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ts-quote-actions .ts-btn-outline {
    background: transparent;
    color: var(--ts-silver, #b8b8b8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ts-quote-actions .ts-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.ts-quote-actions .ts-btn-primary {
    background: linear-gradient(135deg, #e84393, #d63384);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
}

.ts-quote-actions .ts-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.ts-quote-actions .ts-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.ts-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ts-spin 0.8s linear infinite;
}

@keyframes ts-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.ts-quote-success {
    padding: 50px 30px;
    text-align: center;
}

.ts-quote-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(232, 67, 147, 0.2), rgba(232, 67, 147, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e84393;
}

.ts-quote-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ts-white, #ffffff);
    margin: 0 0 15px 0;
}

.ts-quote-success p {
    font-size: 0.95rem;
    color: var(--ts-silver, #b8b8b8);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.ts-quote-success .ts-btn {
    min-width: 150px;
}

/* Responsive */
@media (max-width: 640px) {
    .ts-quote-modal-container {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .ts-quote-modal-header,
    .ts-quote-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .ts-quote-row {
        grid-template-columns: 1fr;
    }
    
    .ts-quote-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ts-quote-actions {
        flex-direction: column-reverse;
    }
    
    .ts-quote-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Opening animations */
.ts-quote-modal.active .ts-quote-modal-overlay {
    animation: ts-fade-in 0.3s ease forwards;
}

.ts-quote-modal.active .ts-quote-modal-container {
    animation: ts-slide-up 0.3s ease forwards;
}

/* Closing animations */
.ts-quote-modal.closing .ts-quote-modal-overlay {
    animation: ts-fade-out 0.25s ease forwards;
}

.ts-quote-modal.closing .ts-quote-modal-container {
    animation: ts-slide-down 0.25s ease forwards;
}

@keyframes ts-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes ts-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes ts-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ts-slide-down {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}