/**
 * Hurricane Quote - Accordion Style
 * Clean, simple, one section at a time
 */

.hurricane-quote-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hurricane-quote-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Intro */
.hurricane-form-intro {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e5e7eb;
}

.hurricane-form-intro h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.hurricane-form-intro p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* Accordion */
.hurricane-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-section {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-section.active {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,102,204,0.1);
}

.accordion-section.completed {
    border-color: #10b981;
}

/* Big Header Button */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-section.active .accordion-header {
    background: #eff6ff;
}

.accordion-section.completed .accordion-header {
    background: #d1fae5;
}

.accordion-header:hover {
    background: #f3f4f6;
}

.accordion-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.accordion-section.active .accordion-number {
    background: #0066cc;
    color: #fff;
}

.accordion-section.completed .accordion-number {
    background: #10b981;
    color: #fff;
    font-size: 0;
}

.accordion-section.completed .accordion-number::after {
    content: '✓';
    font-size: 24px;
}

.accordion-title {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.accordion-status {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.accordion-icon {
    font-size: 32px;
    font-weight: 300;
    color: #6b7280;
    width: 32px;
    text-align: center;
}

.accordion-section.active .accordion-icon {
    color: #0066cc;
}

/* Content */
.accordion-content {
    display: none;
    background: #fff;
}

.accordion-section.active .accordion-content {
    display: block;
}

.accordion-inner {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

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

.accordion-inner h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.section-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 30px 0;
}

/* Installation Options */
.hurricane-installation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

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

.installation-option label {
    display: block;
    border: 3px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    background: #fff;
}

.installation-option label:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.installation-option input[type="radio"]:checked + label {
    border-color: #0066cc;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.installation-option .option-image {
    margin-bottom: 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.installation-option .option-image::after {
    content: '🔍';
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 102, 204, 0.9);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.installation-option .option-image:hover::after {
    opacity: 1;
}

.installation-option .option-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.installation-option h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.installation-option p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Measurements */
.measurement-diagram {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.measurement-diagram::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: rgba(0, 102, 204, 0.95);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.measurement-diagram:hover::after {
    opacity: 1;
}

.measurement-diagram img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    background: #f9fafb;
}

.hurricane-measurements {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.measurement-field label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    position: relative;
}

.measurement-field input[type="number"] {
    flex: 1;
    padding: 14px 55px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.measurement-field input[type="number"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.input-with-unit .unit {
    position: absolute;
    right: 16px;
    font-weight: 600;
    color: #6b7280;
    font-size: 15px;
}

/* Motor Options */
.hurricane-motor-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.motor-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid #e5e7eb;
    border-radius: 10px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    min-height: 160px;
}

.motor-option label:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.motor-option input[type="radio"]:checked + label {
    border-color: #0066cc;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.motor-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #0066cc;
}

.motor-option label span:last-child {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* Colours */
.colour-selection-group {
    margin-bottom: 40px;
}

.colour-group-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.hurricane-colour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.hurricane-colour-grid.box-colours {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
}

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

.colour-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.colour-option label:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.colour-option input[type="radio"]:checked + label {
    border-color: #0066cc;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.colour-swatch {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.colour-option label:hover .colour-swatch {
    transform: scale(1.05);
}

.colour-info {
    text-align: center;
}

.colour-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.colour-ral {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.matching-frame-option {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.matching-frame-option label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.matching-frame-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
}

.frame-note {
    font-size: 14px;
    color: #6b7280;
    margin: 10px 0 0 34px;
    font-style: italic;
}

/* Customer Form */
.hurricane-customer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-field label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.accordion-continue-btn,
.hurricane-submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.accordion-continue-btn:hover,
.hurricane-submit-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.3);
}

.accordion-continue-btn:active,
.hurricane-submit-btn:active {
    transform: translateY(0);
}

.accordion-continue-btn.pulse-highlight,
.hurricane-submit-btn.pulse-highlight {
    animation: pulseButton 1s ease-out;
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(0, 102, 204, 0.6);
    }
}

/* Success */
.hurricane-success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #d1fae5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    margin: 0 auto 25px;
}

.hurricane-success-message h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

.hurricane-success-message p {
    font-size: 18px;
    color: #6b7280;
}

/* Image Lightbox */
.hurricane-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hurricane-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    position: relative;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.lightbox-image-container img.zoomed {
    cursor: move;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    color: #1f2937;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    font-weight: 300;
    transition: all 0.3s ease;
    border: none;
    z-index: 10;
}

.lightbox-close:hover {
    background: #0066cc;
    color: #fff;
    transform: rotate(90deg);
}

.lightbox-hint {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    opacity: 0.8;
}

/* Mobile specific */
@media (max-width: 768px) {
    .lightbox-hint {
        font-size: 12px;
        bottom: -35px;
    }
    
    .lightbox-close {
        top: -35px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* Clickable images */
.option-image img,
.measurement-diagram img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-image img:hover,
.measurement-diagram img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .hurricane-quote-form {
        padding: 20px;
    }
    
    .hurricane-form-intro h2 {
        font-size: 26px;
    }
    
    .accordion-header {
        padding: 20px;
        gap: 15px;
    }
    
    .accordion-number {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 20px;
    }
    
    .accordion-title {
        font-size: 18px;
    }
    
    .accordion-inner {
        padding: 20px;
    }
    
    .hurricane-installation-options {
        grid-template-columns: 1fr;
    }
    
    .hurricane-motor-options {
        grid-template-columns: 1fr;
    }
    
    .hurricane-colour-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hurricane-colour-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .colour-swatch {
        width: 70px;
        height: 70px;
    }
    
    .accordion-status {
        display: none;
    }
}
