#ac-cover-search-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    min-height: 80vh;
}

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    color: #333;
}

.nav-arrow:hover:not(:disabled) {
    background: #e0e0e0;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow svg {
    width: 30px;
    height: 30px;
}

.back-arrow {
    left: 80px;
}

.next-arrow {
    right: 80px;
}

.progress-dots {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0065a7;
    transform: scale(1.3);
}

.form-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    min-height: 500px;
    align-content: center;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%) translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    position: absolute;
}

.form-step.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
}

.form-step.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.form-step.slide-out-right {
    opacity: 0;
    transform: translateX(100%);
}

.form-step.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.form-step.prepared-left {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.form-step.prepared-right {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.step-content {
    text-align: center;
    padding: 40px;
}

.step-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #333;
    letter-spacing: -1px;
}

.type-options,
.color-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.brand-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.brand-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.type-btn {
    border: 2px solid #ddd;
    background: none;
    padding: 20px;
    color: #111;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 35%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.type-btn-image {
    max-width: 90% !important;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 1;
    display: flex;
    align-items: center;
}

.type-btn-text {
    font-size: 24px;
    letter-spacing: -1px;
    font-weight: 600;
    color: #111;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.method-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Search method buttons */
.method-btn {
    border: 2px solid #ddd;
    background: none;
    padding: 30px 20px;
    color: #111;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.method-btn-text {
    font-size: 24px;
    letter-spacing: -1px;
    font-weight: 600;
    color: #111;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1em;
}

.method-btn:hover,
.method-btn.selected {
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.3);
    background: #f0f7ff;
}

.method-btn:hover .method-btn-text,
.method-btn.selected .method-btn-text {
    color: #0065a7;
}

#color-buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.color-btn {
    border: 2px solid #ddd;
    background: none;
    padding: 0;
    color: #111;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 240px;
    height: 250px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    position: relative;
}

.color-btn-image {
    width: 100% !important;
    height: auto;
    object-fit: cover;
    flex: 1;
    display: block;
    transform: scale(-1, -1) translateY(70px);
}

.color-btn-text {
    font-size: 24px;
    letter-spacing: -1px;
    font-weight: 600;
    color: #111;
    text-align: center;
    white-space: nowrap;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 4px;
}

.type-btn:hover,
.type-btn.selected,
.color-btn:hover,
.color-btn.selected {
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.3);
    background: #f0f7ff;
}

.type-btn:hover .type-btn-text,
.type-btn.selected .type-btn-text,
.color-btn:hover .color-btn-text,
.color-btn.selected .color-btn-text {
    color: #0065a7;
}

.brand-btn {
    flex: 1;
    max-width: 20%;
    padding: 20px;
    border: 2px solid #ddd;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-btn img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-btn .brand-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.brand-btn:hover,
.brand-btn.selected {
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.2);
    background: #f0f7ff;
}

#step-model h2 {
    width: 100%;
}

.brand-highlight,
.brand-highlight-model {
    font-weight: bold;
    color: #0065a7;
}

/* Dimensions Step Layout */
#step-dimensions h2,
#step-model h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    letter-spacing: -1px;
    width: 60%;
    justify-self: center;
    line-height: 1em;
}

.brand-highlight {
    font-weight: bold;
    color: #0065a7;
}

.dimensions-form {
    max-width: 800px;
    margin: 0 auto;
}

.dimensions-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
    align-items: center;
}

.dimension-input-group {
    position: relative;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dimension-label {
    display: block;
    background: #f5f5f5;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border: 2px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input.dimension-input[type="number"] {
    width: 100%;
    height: 60px;
    border: 2px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 24px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
    margin-top: 0;
    cursor: pointer;
}

/* .dimension-input[type=number] {
    -moz-appearance: textfield;
    border-radius: 0px 0px 8px 8px;
    border: 2px solid #ddd;
} */

/* HOVER */
.dimension-input-group:hover .dimension-input,
.dimension-input-group:hover .dimension-label {
    border-color: #0065a7;
    background: #f0f7ff;
    color: #0065a7;
}

.dimension-input-group:hover .dimension-input {
    border-color: #0065a7;
    background: white;
    color: #111;
}


/* FOCUS */
.dimension-input:focus {
    outline: none !important;
    border-color: #0065a7 !important;
    /* box-shadow: 0 4px 12px rgba(0, 101, 167, 0.3); */
    background: #f0f7ff;
}

.dimension-input-group:has(.dimension-input:focus),
.dimension-input:focus~.dimension-label,
.dimension-input-group:focus-within .dimension-label {
    border-color: #0065a7;
    background: #f0f7ff;
    color: #0065a7;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.2);
    .dimension-label {
        box-shadow: none;
    }
}

.dimension-input::-webkit-inner-spin-button,
.dimension-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dimension-input[type=number] {
    -moz-appearance: textfield;
}

/* Model number input */
.model-input-wrap {
    margin-bottom: 20px;
}

#ac-model-number {
    width: 400px;
    max-width: 100%;
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 28px;
    text-align: center;
    letter-spacing: 2px;
    padding: 0 20px;
    box-sizing: border-box;
    background: white;
    font-family: monospace;
    text-transform: uppercase;
    transition: border-color 0.3s ease;
}

#ac-model-number:focus {
    outline: none;
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.3);
}

.support-text {
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
}

.search-btn {
    background: #0065a7;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.search-btn:hover:not(:disabled) {
    background: #004d7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.3);
}

.search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.size-options {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.size-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 600px;
    margin: 0 auto;
}

.size-btn {
    flex: 1;
    max-width: 24%;
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.size-btn:hover,
.size-btn.selected {
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.2);
    background: #f0f7ff;
    color: #0065a7;
}

.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(150, 150, 150, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    cursor: pointer;
}

.multiple-results-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 750px;
    overflow-y: auto;
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
    padding: 30px;
}

.multiple-results-popup h3,
.search-success h3 {
    color: #0065a7;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    width: 80%;
    line-height: 1em;
    justify-self: center;
    letter-spacing: -1px;
}

.search-success h3 {
    text-align: left;
    width: 100%;
}

.search-success h4 {
    color: #0065a7;
    font-size: 20px;
    text-align: left;
    font-weight: 600;
    line-height: 1em;
    justify-self: center;
    letter-spacing: -1px;
    margin-top: 20px;
    margin-bottom: 2px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.result-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.result-card:hover {
    border-color: #0065a7;
    box-shadow: 0 4px 12px rgba(0, 101, 167, 0.2);
    text-decoration: none;
    color: inherit;
    background: rgba(0, 101, 167, 0.05);
}

.result-card:hover .result-card-id {
    color: #0065a7;
}

.result-card:hover .result-card-dimensions {
    color: #0065a7;
    background: rgba(0, 101, 167, 0.1);
}

.result-card:visited {
    color: inherit;
}

.result-card-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 150px;
    max-height: 150px;
    border-radius: 4px;
    overflow: hidden;
}

.result-card-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.result-card-content {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-card-id,
.size-info {
    font-size: 18px;
    font-weight: bold;
    color: #222;
}

.result-card-dimensions {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-family: helvetica;
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup-btn:hover {
    background: #f0f0f0;
    color: #666;
}

#search-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

#search-loading .overlay-content,
.no-results,
.search-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #eee;
    border: 2px solid #0065a7;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #0065a7;
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
    font-weight: bold;
}

.search-success {
    padding: 0;
}

.no-results {
    font-weight: normal;
}

.no-results a {
    font-weight: bold;
    text-decoration: underline !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 50px;
        height: 50px;
    }

    .back-arrow {
        left: 20px;
    }

    .next-arrow {
        right: 20px;
    }

    .form-container {
        height: auto;
        min-height: 400px;
    }

    .dimensions-grid {
        flex-direction: column;
        gap: 40px;
    }

    .dimension-input-group {
        width: 100%;
    }

    .step-content h2 {
        font-size: 24px;
        letter-spacing: -1px;
    }

    .type-options,
    .color-options {
        flex-direction: column;
    }

    .type-btn,
    .color-btn,
    .method-btn {
        min-width: 300px;
        width: 100%;
    }

    .brand-row {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .brand-btn {
        max-width: 100%;
        height: 100px;
    }

    .size-row {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .size-btn {
        max-width: 100%;
        height: 60px;
    }

    .multiple-results-popup {
        padding: 20px;
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    #color-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .color-btn {
        width: 300px;
    }

    #ac-model-number {
        width: 100%;
        font-size: 22px;
    }
}

.mesh-result-content {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 500px;
}

.mesh-result-image {
    flex-shrink: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.mesh-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mesh-result-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    padding: 20px;
    align-self: center;
}

.mesh-result-text .size-info {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

@media (max-width: 480px) {
    .mesh-result-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .mesh-result-text {
        text-align: center;
    }

    .mesh-result-image {
        width: 120px;
        height: 120px;
    }
}