/**
 * Frontend CSS for Tint Quote Form plugin - Updated with new layout requirements
 */

/* Main Form Container */
.tqf-form-container {
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

/* Progress Bar Container */
.tqf-steps-container {
    margin-bottom: 0px;
    display: none;
}

.tqf-steps {
    position: relative;
    margin-bottom: 20px;
}

/* Progress Bar Background */
.tqf-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: visible;
    margin-bottom: 15px;
    position: relative;
}

/* Progress Bar Fill */
.tqf-progress-fill {
    height: 100%;
    background: #f7682c;
    border-radius: 15px;
    transition: width 0.3s ease;
    width: 25%; /* Default to first step */
    position: relative;
}

/* Progress Percentage Display - Inside the bar */
.tqf-progress-percentage {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: right 0.3s ease;
    white-space: nowrap;
}

/* Step Labels Container */
.tqf-step-labels {
    display: none;
    justify-content: space-between;
    position: relative;
}

.tqf-step-label {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.tqf-step-label.active {
    color: #0073aa;
    font-weight: bold;
}

.tqf-step-label.completed {
    color: #4CAF50;
}

/* Form Steps */
.tqf-form-step {
    padding: 20px 0;
}

.tqf-form-step h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0073aa;
    font-size: 36px!important;
    font-weight: bold;
}

.tqf-form-row {
    margin-bottom: 40px;
    width: 100%;
    clear: both;
}
@media only screen and (max-width:768px) {
  .tqf-form-row {
    margin-bottom: 20px;
}  
}

.tqf-form-row label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #000 !important;
}

.tqf-form-row input[type="text"],
.tqf-form-row input[type="email"],
.tqf-form-row input[type="tel"],
.tqf-form-row select{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f9f9f9;
    font-size: 16px;
    box-sizing: border-box;
    height: 56px!important;
}

.tqf-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #f9f9f9;
    font-size: 16px;
    box-sizing: border-box;
    padding: 20px;
}

/* Two Column Layout for Vehicle Form */
.tqf-form-row-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px!important;
    margin-bottom: 40px;
    width: 100%;
}

.tqf-form-row-half {
    flex: 1 1 50% !important;
    margin-bottom: 0;
    width: calc(50% - 10px);
}

/* Three Column Layout for Vehicle Details */
.tqf-form-row-group.tqf-three-column {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-bottom: 40px;
    width: 100%;
}

@media only screen and (max-width:768px) {
  .tqf-form-row-group {
    margin-bottom: 20px;
}  
.tqf-form-row-group.tqf-three-column {
     margin-bottom: 20px;
}
}
.tqf-form-row-third {
    flex: 1 1 33.333% !important;
    margin-bottom: 0;
    width: calc(33.333% - 13.33px);
}

.tqf-form-row-half input,
.tqf-form-row-half select,
.tqf-form-row-third input,
.tqf-form-row-third select {
    width: 100% !important;
    box-sizing: border-box;
}

.tqf-operation-info {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    color: #333;
}

.tqf-form-row select:disabled {
    background-color: #e9e9e9;
    cursor: not-allowed;
}

.tqf-radio-group {
    display: flex;
    gap: 20px;
}

.tqf-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.tqf-radio-group input[type="radio"] {
    margin-right: 8px;
}

/* Tint Type Grid */
.tqf-tint-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tqf-tint-type-item {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tqf-tint-type-item:hover {
    border-color: #f18200;
    transform: translateY(-5px);
  box-shadow: 0px 15px 28px -2px rgba(0, 0, 0, .15);
}

.tqf-tint-type-item.selected {
    border-color: #f18200;
   box-shadow: 0px 15px 28px -2px rgba(0, 0, 0, .15);
}
.tqf-tint-type-icon {
    margin-bottom: 15px;
}

.tqf-tint-type-icon img {
    width: 60px;
    height: 60px;
}

.tqf-tint-type-item h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 28px!important;
}

.tqf-tint-type-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Vehicle Type Grid */
.tqf-vehicle-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18%, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tqf-vehicle-type-item {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.tqf-vehicle-type-item:hover {
    border-color: #000;
}

.tqf-vehicle-type-item.selected {
    border-color: #000;
    background-color: #fff;
}

.tqf-vehicle-type-icon {
    margin-bottom: 0px;
}

.tqf-vehicle-type-icon img {
    width: 80px;
    height: 40px;
}

.tqf-vehicle-type-item span {
   color: #000000;
    font-size: 14px;
    font-weight: 600;
}

/* Quote Preview */
.tqf-quote-summary {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
}

/* New Layout for Quote Summary */
.tqf-quote-summary-new-layout {
    display: flex !important;
    gap: 30px;
    margin-bottom: 30px;
    min-height: 400px;
}

.tqf-quote-left-column {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 40px;
}

.tqf-quote-right-column {
    flex: 1;
}

.tqf-quote-left-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 18px;
}

.tqf-quote-right-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
    font-size: 18px;
}

/* Background image section */
.tqf-booking-section {
    background-image: url('/wp-content/uploads/2025/05/Global-Tint-Window-Tinting-UK-902-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.tqf-booking-content {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    backdrop-filter: blur(2px);
}

.tqf-booking-content h3 {
    color: #0073aa !important;
    margin-bottom: 15px;
    font-weight: bold;
}

.tqf-booking-content p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Two Column Quote Summary for Vehicle Step 4 (legacy support) */
.tqf-quote-summary-two-column {
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
}

.tqf-quote-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tqf-quote-icon {
    margin-right: 15px;
}

.tqf-quote-icon img {
    width: 40px;
    height: 40px;
}

.tqf-quote-header h3 {
    margin: 0;
    color: #0073aa;
    font-size: 20px;
}

.tqf-quote-details {
    margin-bottom: 20px;
}

.tqf-quote-row {
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.tqf-quote-row:last-child {
    border-bottom: none;
}

.tqf-quote-label {
    width: 50%;
    font-weight: normal;
}

.tqf-quote-value {
    width: 50%;
}

/* Warranty row styling */
.tqf-warranty-row {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
}

.tqf-checkmark {
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    margin-right: 10px;
}

.tqf-warranty-text {
    color: #4CAF50;
    font-weight: bold;
}

.tqf-quote-note, #tqf-architectural-available {
  background-color: none!important;
    padding: 15px!important;
    margin-top: 20px!important;
    border-radius: 20px!important;
}

.tqf-quote-note p {
    margin: 0;
}

/* Navigation Buttons */
.tqf-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.tqf-prev-button,
.tqf-next-button,
.tqf-submit-button,
.tqf-try-again-button,
.tqf-see-price-button {
    padding: 10px 20px!important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tqf-prev-button {
    background-color: #f2f2f2;
    color: #666;
    margin:15px auto 0px 0px;
}

.tqf-prev-button:hover {
    background-color: #e0e0e0;
}

.tqf-next-button,
.tqf-submit-button,
.tqf-see-price-button {
    background-color: #0073aa;
    color: #fff;
    margin:15px 0px 0px auto;
}

.tqf-next-button:hover,
.tqf-submit-button:hover,
.tqf-see-price-button:hover {
    background-color: #005d8c;
}

.tqf-next-button:disabled,
.tqf-submit-button:disabled,
.tqf-see-price-button:disabled {
    background-color: #9ab;
    cursor: not-allowed;
}

.tqf-request-booking-button {
    background-color: #f7682c;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

.tqf-request-booking-button:hover {
    background-color: #e55a25;
}

.tqf-try-again-button {
    background-color: #f2f2f2;
    color: #666;
    margin: 20px auto 0;
    display: block;
}

.tqf-try-again-button:hover {
    background-color: #e0e0e0;
}

/* Processing, Success, and Error Messages */
.tqf-form-processing,
.tqf-form-success,
.tqf-form-error {
    text-align: center;
    padding: 40px 20px;
}

.tqf-processing-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tqf-success-icon,
.tqf-error-icon {
    margin-bottom: 20px;
}

.tqf-success-icon img,
.tqf-error-icon img {
    width: 80px;
    height: 80px;
}

.tqf-form-success h2,
.tqf-form-error h2 {
    color: #0073aa;
    margin-bottom: 15px;
}

.tqf-form-error h2 {
    color: #d32f2f;
}

.tqf-form-success p,
.tqf-form-error p {
    font-size: 18px;
    margin-bottom: 20px;
}

#tqf-error-list {
    text-align: left;
    margin: 0 auto;
    max-width: 500px;
    color: #d32f2f;
}

/* Quick Form */
.tqf-quick-form-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tqf-quick-form-header {
    background-color: #0073aa;
    padding: 15px 20px;
}

.tqf-quick-form-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    text-align: center;
}

.tqf-quick-form-body {
    padding: 20px;
}

.tqf-quick-form-row {
    margin-bottom: 15px;
}

.tqf-quick-form-row:last-child {
    margin-bottom: 0;
}

.tqf-quick-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.tqf-quick-form-row input,
.tqf-quick-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.tqf-quick-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tqf-quick-submit-button:hover {
    background-color: #005d8c;
}

/* Helper Classes */
.tqf-hidden {
    display: none;
}

.tqf-error {
    color: #d32f2f;
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .tqf-form-container {
        padding: 15px;
        margin: 0 10px;
    }
    
    .tqf-step-labels {
        font-size: 12px;
    }
    
    .tqf-tint-type-grid,
    .tqf-vehicle-type-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tqf-quote-row {
        flex-direction: row;
    }
    
    .tqf-quote-label,
    .tqf-quote-value {
        width: 100%;
    }
    
    .tqf-quote-label {
        margin-bottom: 5px;
    }
    
    /* New layout becomes single column on mobile */
    .tqf-quote-summary-new-layout {
        flex-direction: column !important;
        gap: 20px;
        min-height: auto;
    }
    
    .tqf-booking-section {
        min-height: 300px;
    }
    
    .tqf-quote-left-column,
    .tqf-quote-right-column {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    /* Two-column quote layout becomes single column on mobile (legacy) */
    .tqf-quote-summary-two-column {
        flex-direction: column;
        gap: 20px;
    }
    
    .tqf-form-navigation {
        flex-direction: row;
        gap: 10px;
    }
    
    .tqf-next-button,
    .tqf-prev-button,
    .tqf-submit-button,
    .tqf-see-price-button {
        width: 100%;
    }
    
    .tqf-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Make two-column layout single column on mobile */
    .tqf-form-row-group {
        flex-direction: column !important;
        gap: 0;
    }
    
    /* Make three-column layout single column on mobile */
    .tqf-form-row-group.tqf-three-column {
        flex-direction: column !important;
        gap: 0;
    }
    
    .tqf-form-row-half,
    .tqf-form-row-third {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .tqf-booking-content {
        max-width: 90%;
        padding: 20px;
    }
}

/* Operation info display */
.tqf-operation-info {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    color: #333;
}
select {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);
    background-position: 100%;
    background-repeat: no-repeat;
    -webkit-appearance: none !important;
}