/* Car Quotation System - Single Page Form Styles */

.car-quotation-wrapper.single-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.car-quotation-form-single {
    display: block;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 24px;
    color: #d32f2f;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Form Rows */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 20px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

/* Color Selection */
.color-section {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-option-single {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.color-option-single:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option-single.selected {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.3);
    background: #e3f2fd;
}

.color-option-single img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.color-option-single .color-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Pricing Row */
.pricing-row {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.input-with-currency {
    position: relative;
}

.input-with-currency .currency {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
    pointer-events: none;
}

.input-with-currency input {
    padding-right: 50px;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    text-align: left;
}

.btn-submit-quotation {
    background: #1976d2;
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-submit-quotation:hover {
    background: #1565c0;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.btn-submit-quotation:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 2px solid #4caf50;
    margin-top: 30px;
}

.success-message h3 {
    color: #2e7d32;
    font-size: 24px;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    margin-bottom: 10px;
}

.btn-new-quotation {
    background: #4caf50;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.btn-new-quotation:hover {
    background: #45a049;
}

/* Loading State */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Target number inputs more specifically */
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
/* Hide ALL Firefox spinner pseudo-elements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}
input[type="number"]::-moz-number-spin-box,
input[type="number"]::-moz-number-spin-down,
input[type="number"]::-moz-number-spin-up {
  display: none;
  -moz-appearance: none;
  appearance: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .car-quotation-wrapper.single-page {
        padding: 20px;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}


@media (max-width: 480px) {
    .form-section h3 {
        font-size: 20px;
    }
    
    .btn-submit-quotation {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Brand Section */
.brand-section select {
    height: 50px !important;
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
}
/* Model Section */
.model-section select {
    height: 50px !important;
    font-size: 16px;
    font-weight: 500;
    padding: 12px;
}

#car-quotation-form input, #car-quotation-form select {
    height:50px;
}

/* Multi-select Province Dropdown */
select[multiple] {
    min-height: 150px !important;
    padding: 8px;
}

select[multiple] option {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

select[multiple] option:hover {
    background: #e3f2fd;
}

select[multiple] option:checked {
    background: #1976d2;
    color: #fff;
}

.description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}
