/* AirPad Recommendations Tool Styles */

/* Reset and Base Styles */
#airpad-recommendation-tool * {
    box-sizing: border-box;
}

#airpad-recommendation-tool {
    font-family: 'Bai Jamjuree', sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.airpad-container {
    width: 100%;
    padding: 20px 0;
}

/* Step Layout - Vertical */
.airpad-step {
    display: none;
    width: 100%;
    margin-bottom: 40px;
    padding: 30px 0;
    transition: all 0.3s ease;
}

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

.airpad-step.completed {
    opacity: 0.8;
}

.airpad-step.completed .airpad-step-title::after {
    content: " ✓";
    color: #ff0000;
    font-weight: bold;
}

.airpad-step-content {
    width: 100%;
    padding: 0;
}

/* Panel Layout - 25/75 Split */
.airpad-left-panel {
    width: 25%;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.airpad-right-panel {
    width: 75%;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.airpad-full-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

/* Reset Button Section */
.airpad-reset-section {
    width: 100%;
    text-align: right;
    margin-bottom: 20px;
}

.airpad-reset-btn {
    background: #ffffff;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 8px 16px;
    border-radius: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.airpad-reset-btn:hover {
    background: #ff0000;
    color: #ffffff;
}

/* Typography */
.airpad-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff0000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.airpad-step-title {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 30px;
    line-height: 1.3;
}

.airpad-description {
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 400;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Questions Container */
.airpad-questions-container {
    width: 100%;
    text-align: left;
}

.airpad-question {
    display: none;
    margin-bottom: 40px;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.airpad-question.active {
    display: block;
}

.airpad-question.completed {
    opacity: 0.7;
}

.airpad-question.completed .question-title::after {
    content: " ✓";
    color: #ff0000;
    font-weight: bold;
}

.airpad-question.completed .question-title {
    cursor: pointer;
}

.airpad-question.completed .question-title:hover {
    color: #ff0000;
}

#question-void_fill_today {
    display: block !important;
}

#step-1.initial-load {
    display: block !important;
}

/* Question Options */
.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

/* Question Instructions */
.question-instruction {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-style: italic;
    color: #666666;
    line-height: 1.4;
}

/* Button Styles - All Buttons */
.airpad-option-btn {
    background: #ffffff;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 12px 24px;
    border-radius: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.airpad-option-btn:hover,
.airpad-option-btn:active {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.airpad-option-btn.active {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.airpad-option-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

/* Primary Button */
.airpad-btn {
    background: #ffffff;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 15px 30px;
    border-radius: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.airpad-btn:hover,
.airpad-btn:active {
    background: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.airpad-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

/* Form Styles */
.airpad-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group textarea[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Step 2 & 3 Sections */
.airpad-selections-section {
    width: 100%;
    margin-bottom: 40px;
}

.airpad-form-section {
    width: 100%;
}

.airpad-products-section {
    width: 100%;
    margin-top: 40px;
}

/* Reasoning Section */
.airpad-reasoning {
    width: 100%;
    margin-bottom: 30px;
}

.reasoning-content {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
    font-size: 1rem;
    line-height: 1.5;
    color: #333333;
    text-align: left;
}

.reasoning-content strong {
    color: #ff0000;
    margin-right: 5px;
}

/* Selections Summary */
.airpad-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
    width: 100%;
    text-align: center;
}

.summary-item {
    display: inline-block;
    margin: 0 15px 10px 15px;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.summary-item:last-child {
    margin-bottom: 10px;
}

.summary-label {
    font-weight: 600;
    color: #666666;
    font-size: 0.9rem;
    margin-right: 5px;
}

.summary-value {
    color: #ff0000;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Products Grid */
.airpad-products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.airpad-product-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.airpad-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #ff0000;
}

.product-image {
    width: auto;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 300px !important;
    max-width: 300px !important;
    object-fit: cover !important;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
    border: 2px dashed #e0e0e0;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-grow: 0;
}

.product-description {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff0000;
    margin-bottom: 15px;
}

.product-link {
    display: inline-block;
    background: #ffffff;
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 12px 24px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.product-link:hover,
.product-link:active {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
    text-decoration: none;
}

.no-products-message {
    text-align: center;
    font-size: 1.1rem;
    color: #666666;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff0000;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Step Transitions - Removed (now using vertical layout) */

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .airpad-step-content {
        flex-direction: column;
        padding: 20px 15px;
    }

    .airpad-left-panel,
    .airpad-right-panel {
        width: 100%;
        padding: 0;
    }

    .airpad-left-panel {
        margin-bottom: 30px;
    }

    .airpad-step {
        padding: 20px 0;
    }

    .airpad-main-title {
        font-size: 2rem;
        text-align: center;
    }

    .airpad-step-title {
        font-size: 1.5rem;
    }

    .question-title {
        font-size: 1.3rem;
    }

    .question-options {
        justify-content: center;
    }

    .airpad-option-btn {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .airpad-products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    @media (min-width: 768px) and (max-width: 1024px) {
        .airpad-products-container {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .airpad-container {
        height: auto;
        min-height: 100vh;
    }

    .airpad-step {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .airpad-main-title {
        font-size: 1.8rem;
    }

    .airpad-step-title {
        font-size: 1.3rem;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .airpad-option-btn {
        min-width: 90px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .airpad-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    .airpad-container,
    .airpad-option-btn,
    .airpad-btn,
    .airpad-question {
        transition: none;
    }

    .slide-in-right,
    .fade-in-up {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .airpad-option-btn {
        border-width: 3px;
    }

    .airpad-option-btn.active {
        border-width: 3px;
    }
}

/* Focus indicators for keyboard navigation */
.airpad-option-btn:focus-visible,
.airpad-btn:focus-visible,
.form-group input:focus-visible {
    outline: 3px solid #ff0000;
    outline-offset: 2px;
}