/**
 * Car Window Tint Simulator - Main Stylesheet
 * 
 * @package Car_Window_Tint_Simulator
 * @version 1.0.0
 */

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --cwts-primary-color: #333;
    --cwts-secondary-color: #0066cc;
    --cwts-accent-color: #ff9900;
    --cwts-text-color: #333;
    --cwts-border-color: #ddd;
    --cwts-bg-light: #f9f9f9;
    --cwts-transition: all 0.3s ease;
}

.cwts-simulator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--cwts-text-color);
    line-height: 1.6;
    box-sizing: border-box;
}

.cwts-simulator-wrapper *,
.cwts-simulator-wrapper *::before,
.cwts-simulator-wrapper *::after {
    box-sizing: border-box;
}

/* ========================================
   MAIN CONTAINER LAYOUT
   ======================================== */

.cwts-simulator-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* ========================================
   CONTROL PANEL
   ======================================== */

.cwts-controls-panel {
    flex: 0 0 40%;
    background: var(--cwts-bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cwts-steps-wrapper {
    margin-bottom: 30px;
}

.cwts-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

.cwts-step:last-child {
    margin-bottom: 0;
}

.cwts-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--cwts-secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.cwts-step-content {
    flex: 1;
}

.cwts-step-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cwts-primary-color);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.cwts-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid var(--cwts-border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--cwts-text-color);
    cursor: pointer;
    transition: var(--cwts-transition);
}

.cwts-select:hover {
    border-color: var(--cwts-secondary-color);
}

.cwts-select:focus {
    outline: none;
    border-color: var(--cwts-secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ========================================
   SERVICE SELECTOR
   ======================================== */

.cwts-service-selector-wrap {
    width: 100%;
}

.cwts-service-selector-wrap .cwts-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cwts-primary-color);
}

.cwts-service-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ========================================
   ZONE SELECTORS
   ======================================== */

.cwts-zone-selectors {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cwts-zone-box {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--cwts-border-color);
}

.cwts-zone-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cwts-primary-color);
}

.cwts-tint-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.cwts-tint-list li {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cwts-tint-btn {
    display: block;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: var(--cwts-transition);
    position: relative;
}

.cwts-tint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cwts-tint-btn.active {
    outline: 3px solid var(--cwts-accent-color);
    outline-offset: 2px;
}

/* ========================================
   PAINT PROTECTION COVERAGE SELECTOR
   ======================================== */

.cwts-coverage-selector,
.cwts-vehicle-selector {
    margin-top: 15px;
}

.cwts-coverage-title,
.cwts-vehicle-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--cwts-primary-color);
}

.cwts-coverage-options,
.cwts-vehicle-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cwts-coverage-option,
.cwts-vehicle-option {
    position: relative;
}

.cwts-coverage-radio,
.cwts-ceramic-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cwts-coverage-label,
.cwts-ceramic-label {
    display: block;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid var(--cwts-border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--cwts-transition);
}

.cwts-coverage-label:hover,
.cwts-ceramic-label:hover {
    border-color: var(--cwts-secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cwts-coverage-radio:checked + .cwts-coverage-label,
.cwts-ceramic-radio:checked + .cwts-ceramic-label {
    background: var(--cwts-secondary-color);
    border-color: var(--cwts-secondary-color);
    color: #fff;
}

.cwts-coverage-radio:checked + .cwts-coverage-label .cwts-coverage-desc,
.cwts-ceramic-radio:checked + .cwts-ceramic-label .cwts-ceramic-desc {
    color: rgba(255, 255, 255, 0.9);
}

.cwts-coverage-name,
.cwts-ceramic-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.cwts-coverage-desc,
.cwts-ceramic-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* ========================================
   OUTPUT AREA
   ======================================== */

.cwts-output-area {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 2px solid var(--cwts-border-color);
    text-align: center;
}

.cwts-install-time,
.cwts-price {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: var(--cwts-primary-color);
    letter-spacing: 1px;
}

.cwts-install-time span,
.cwts-price span {
    color: var(--cwts-secondary-color);
}

.cwts-time-start,
.cwts-time-end,
.cwts-price-value {
    font-size: 24px;
}

.cwts-cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--cwts-accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: var(--cwts-transition);
    margin-top: 10px;
}

.cwts-cta-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* ========================================
   PREVIEW PANEL
   ======================================== */

.cwts-preview-panel {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.cwts-car-preview {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.cwts-car-base {
    width: 100%;
    height: auto;
    display: block;
}

.cwts-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Overlay image/div element */
.cwts-overlay-img {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* ========================================
   PRODUCT INFORMATION
   ======================================== */

.cwts-info-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cwts-product-section {
    animation: fadeIn 0.3s ease;
}

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

.cwts-product-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--cwts-secondary-color);
}

.cwts-product-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: var(--cwts-primary-color);
}

.cwts-product-title strong {
    color: var(--cwts-secondary-color);
}

.cwts-product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cwts-product-description h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--cwts-primary-color);
}

.cwts-product-description h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: var(--cwts-secondary-color);
}

.cwts-product-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.cwts-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cwts-features-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.cwts-features-list li:last-child {
    margin-bottom: 0;
}

.cwts-features-list .fas {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--cwts-secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cwts-feature-box h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--cwts-primary-color);
}

.cwts-feature-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.cwts-hidden {
    display: none !important;
}

.cwts-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   RTL (Right-to-Left) SUPPORT
   ======================================== */

[dir="rtl"] .cwts-simulator-container,
.rtl .cwts-simulator-container {
    direction: rtl;
}

[dir="rtl"] .cwts-controls-panel,
.rtl .cwts-controls-panel {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .cwts-step-number,
.rtl .cwts-step-number {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .cwts-info-container,
.rtl .cwts-info-container {
    text-align: right;
}

[dir="rtl"] .cwts-coverage-option label,
.rtl .cwts-coverage-option label,
[dir="rtl"] .cwts-vehicle-option label,
.rtl .cwts-vehicle-option label {
    text-align: right;
}

[dir="rtl"] .cwts-zone-list,
.rtl .cwts-zone-list {
    padding-right: 0;
    padding-left: 20px;
}
