/* Quote Form System Styles */

.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #f5f5f5;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    background: #f8f8f8;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}

.modal-header p {
    margin: 0;
    color: #000000;
    font-size: 16px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
}

.close-modal:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

/* Service Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.service-item {
    padding: 25px;
    border: 2px solid #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    background: #ffffff;
}

.service-item:hover {
    border-color: #000000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #000000;
}

.service-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.service-item p {
    margin: 0;
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
}

.popular {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f5f5f5;
    background: #f8f8f8;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 20px;
    color: #f5f5f5;
    font-weight: 500;
    position: relative;
}

.step.active {
    color: #000000;
}

.step::before {
    content: attr(data-step);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.step.active::before {
    background: #000000;
    color: #ffffff;
}

/* Form Styles */
.form-step {
    padding: 30px;
    background: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
}

.form-group label i {
    margin-right: 8px;
    color: #000000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f5f5f5;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #000000;
    background: #f8f8f8;
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.tips {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 12px;
    color: #000000;
    cursor: pointer;
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #f5f5f5;
    border-radius: 6px;
    background: #f8f8f8;
}

.radio-group input,
.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-bottom: 0;
}

.radio-group label,
.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    color: #000000;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #f5f5f5;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f8f8;
}

.file-upload-area:hover {
    border-color: #000000;
    background: #ffffff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #000000;
}

.file-upload-area p {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #000000;
}

.file-upload-area small {
    color: #000000;
    font-size: 14px;
}

.file-upload-area input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* What Happens Next */
.what-happens-next {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #f5f5f5;
}

.what-happens-next h3 {
    margin: 0 0 15px 0;
    color: #000000;
    font-size: 18px;
}

.what-happens-next ul,
.what-happens-next ol {
    margin: 0;
    padding-left: 20px;
    color: #000000;
}

.what-happens-next li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
    margin-top: 30px;
}

/* Buttons */
.quote-btn,
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.quote-btn,
.btn-primary {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.quote-btn:hover,
.btn-primary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f5f5f5;
    color: #000000;
    border-color: #f5f5f5;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.btn-primary:disabled {
    background: #f5f5f5;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    border-color: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        margin: 5px 0;
    }
    
    .form-step {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .services-grid {
        padding: 15px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .form-step {
        padding: 15px;
    }
}

/* Additional Form Validation Styles */
.error-message {
    color: #000000;
    font-size: 14px;
    margin-top: 5px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 4px;
    border-left: 3px solid #000000;
}