/* assets/css/configurator.css */

/* Reset and base styles */
#gdc-configurator {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

#gdc-configurator * {
    box-sizing: border-box;
}

/* Force desktop view on all devices */
@media screen and (max-width: 768px) {
    #gdc-configurator {
        min-width: 100%;
        padding: 10px;
    }
    
    .gdc-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
    }
}

/* Form container */
.gdc-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    position: relative;
}

/* Steps */
.gdc-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.gdc-step.active {
    display: block;
}

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

/* Headings */
.gdc-step h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

/* Model cards */
.gdc-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gdc-model-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gdc-model-card:hover {
    border-color: #27ae60;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gdc-model-card.selected {
    border-color: #27ae60;
    background: #f0f9ff;
}

.gdc-model-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.gdc-model-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.gdc-model-card .price {
    font-size: 24px;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 15px;
}

.gdc-select-model {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.gdc-select-model:hover {
    background: #219a52;
}

/* Field groups */
.gdc-field-group {
    margin-bottom: 20px;
}

.gdc-field-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.gdc-field-group input[type="text"],
.gdc-field-group input[type="email"],
.gdc-field-group input[type="tel"],
.gdc-field-group input[type="number"],
.gdc-field-group select,
.gdc-field-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.gdc-field-group input:focus,
.gdc-field-group select:focus,
.gdc-field-group textarea:focus {
    outline: none;
    border-color: #27ae60;
}

.helper-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Dimensions */
.gdc-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.gdc-dimension-display {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.gdc-dimension-display p {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

/* Colors */
.gdc-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gdc-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gdc-color-option:hover {
    border-color: #27ae60;
}

.gdc-color-option input[type="radio"] {
    display: none;
}

.gdc-color-option input[type="radio"]:checked + .color-swatch {
    box-shadow: 0 0 0 3px #27ae60;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.color-name {
    font-size: 14px;
    color: #555;
}

/* Accessories */
.gdc-accessories {
    margin-bottom: 20px;
}

.gdc-accessory {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gdc-accessory:hover {
    background: #f8f9fa;
}

.gdc-accessory input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.accessory-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessory-info .name {
    color: #2c3e50;
}

.accessory-info .price {
    color: #27ae60;
    font-weight: 500;
}

/* Navigation */
.gdc-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.gdc-prev,
.gdc-next,
.gdc-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gdc-prev {
    background: #95a5a6;
    color: white;
}

.gdc-prev:hover {
    background: #7f8c8d;
}

.gdc-next,
.gdc-submit {
    background: #27ae60;
    color: white;
}

.gdc-next:hover,
.gdc-submit:hover {
    background: #219a52;
}

/* Summary */
.gdc-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

#summary-content {
    margin-bottom: 20px;
}

#summary-content table {
    width: 100%;
    border-collapse: collapse;
}

#summary-content td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

#summary-content td:first-child {
    font-weight: 500;
    color: #555;
}

.gdc-total {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 4px;
    margin: 20px 0;
}

.gdc-total h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.gdc-total span {
    color: #27ae60;
    font-size: 32px;
}

.promo-text {
    color: #e74c3c;
    font-style: italic;
}

/* Privacy */
.gdc-privacy {
    margin-top: 20px;
}

.gdc-privacy label {
    display: flex;
    align-items: center;
}

.gdc-privacy input[type="checkbox"] {
    margin-right: 10px;
}

/* Progress bar */
.gdc-progress {
    margin-top: 40px;
}

.gdc-progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.gdc-progress-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s ease;
}

.gdc-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.gdc-progress-steps .step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gdc-progress-steps .step.active {
    background: #27ae60;
    color: white;
}

/* Loading overlay */
.gdc-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.gdc-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e0e0;
    border-top-color: #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.gdc-loading p {
    margin-top: 20px;
    color: #666;
}

/* Success message */
.gdc-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.gdc-success-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
}

.gdc-success-content h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

.gdc-new-quote {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gdc-form {
        padding: 20px;
    }
    
    .gdc-models {
        grid-template-columns: 1fr;
    }
    
    .gdc-dimensions {
        grid-template-columns: 1fr;
    }
    
    .gdc-colors {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gdc-navigation {
        flex-wrap: wrap;
    }
    
    .gdc-prev,
    .gdc-next,
    .gdc-submit,
    .gdc-whatsapp {
        width: 100%;
    }
}

/* Admin styles */
.nav-tab-wrapper {
    margin-bottom: 20px;
}

.tab-content {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.field-mapping-container {
    margin-top: 20px;
}

.field-mapping {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.field-mapping input[type="text"] {
    width: 200px;
}
