/* TSC Car Direct Order - Frontend Styles */
:root {
    --tsc-primary: #111111;
    --tsc-secondary: #333333;
    --tsc-accent: #c62828;
    --tsc-white: #ffffff;
    --tsc-gray-light: #f5f5f5;
    --tsc-gray-medium: #dddddd;
    --tsc-text-dark: #111111;
    --tsc-text-muted: #666666;
    --tsc-radius: 12px;
    --tsc-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --tsc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Main Button Style */
.tsc-premium-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--tsc-primary) 0%, var(--tsc-secondary) 100%);
    color: var(--tsc-white) !important;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 18px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--tsc-transition);
    margin-top: 20px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tsc-premium-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #222222 0%, #444444 100%);
}

.tsc-premium-btn:active {
    transform: translateY(2px);
}

.tsc-btn-disabled {
    background: #555555 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.8;
}

/* 2. Modal Styles */
#tsc-car-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#tsc-car-modal.tsc-active {
    display: flex;
    opacity: 1;
}

.tsc-modal-inner {
    background: var(--tsc-white);
    padding: 40px 30px;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    direction: rtl;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#tsc-car-modal.tsc-active .tsc-modal-inner {
    transform: translateY(0);
}

.tsc-modal-close {
    position: absolute;
    top: 20px; left: 20px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    background: var(--tsc-gray-light);
    border-radius: 50%;
    border: none;
    color: var(--tsc-text-dark);
    line-height: 1;
    transition: var(--tsc-transition);
}

.tsc-modal-close:hover {
    background: var(--tsc-accent);
    color: var(--tsc-white);
    transform: rotate(90deg);
}

.tsc-modal-inner h3 {
    margin: 0 0 30px;
    font-size: 24px;
    font-weight: 800;
    color: var(--tsc-text-dark);
    text-align: center;
}

/* Form Groups */
.tsc-fg {
    margin-bottom: 20px;
    text-align: right;
}

.tsc-fg label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--tsc-text-dark);
    font-size: 14px;
}

.tsc-fg input,
.tsc-fg select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eeeeee;
    border-radius: 12px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fafafa;
    transition: var(--tsc-transition);
}

.tsc-fg input:focus,
.tsc-fg select:focus {
    border-color: var(--tsc-primary);
    background: var(--tsc-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}

.tsc-fg input[readonly] {
    background: #f0f0f0;
    color: #888;
    cursor: not-allowed;
    border-color: #eee;
}

.tsc-fg input.tsc-error {
    border-color: var(--tsc-accent) !important;
    background: rgba(198, 40, 40, 0.02);
}

/* Sections */
.tsc-section-title {
    font-size: 12px;
    font-weight: 800;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-align: right;
    display: flex;
    align-items: center;
}

.tsc-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
    margin-right: 15px;
}

/* Submit Button */
.tsc-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--tsc-primary);
    color: var(--tsc-white);
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--tsc-transition);
    margin-top: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tsc-submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Toast Notification */
.tsc-toast {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--tsc-accent);
    color: var(--tsc-white);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    z-index: 10000000;
    direction: rtl;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 15px 40px rgba(198, 40, 40, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tsc-toast.tsc-active {
    display: block;
    transform: translateX(-50%) translateY(0);
}

/* Scrollbar Style */
.tsc-modal-inner::-webkit-scrollbar {
    width: 6px;
}
.tsc-modal-inner::-webkit-scrollbar-track {
    background: transparent;
}
.tsc-modal-inner::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}
.tsc-modal-inner::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
