/* ========================================
   Final View - Boat Builder Step 5
   ======================================== */

/* Container */
.final-view {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.final-view__container {
    width: 100%;
    max-width: 1400px;
    padding: 60px;
    background: white;
    border: 1px solid #E7E7E7;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Header */
.final-view__header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.final-view__title {
    color: #080808;
    font-size: 72px;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 63px;
    letter-spacing: 2.88px;
    margin: 0;
}

.final-view__icon {
    width: 29px;
    height: 29px;
    overflow: hidden;
}

/* Divider */
.final-view__divider {
    width: 100%;
    height: 1px;
    background: #E7E7E7;
}

/* Step Bar */
.final-view__step-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 20px;
}

.final-view__step-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.final-view__step-icon {
    width: 24px;
    height: 24px;
    overflow: hidden;
}

.final-view__step-number {
    text-align: center;
    color: black;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 20px;
}

.final-view__step-description {
    color: black;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
}

/* Progress Bar */
.final-view__progress {
    padding: 8px;
    background: white;
    display: flex;
    gap: 8px;
    align-items: center;
}

.final-view__progress-bar {
    width: 78px;
    height: 9px;
    background: #D1D1D1;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.final-view__progress-bar[data-active="true"] {
    background: #9F1238;
}

.final-view__progress-dot {
    width: 9px;
    height: 9px;
    background: #D1D1D1;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.final-view__progress-dot[data-active="true"] {
    background: #9F1238;
}

/* Main Content */
.final-view__content {
    display: flex;
    gap: 40px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #E7E7E7;
}

/* Left Column */
.final-view__left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.final-view__brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-view__brand-logo {
    width: 200px;
    height: 63px;
    object-fit: contain;
}

.final-view__actions {
    display: flex;
    gap: 10px;
}

.final-view__action-btn {
    min-width: 100px;
    min-height: 32px;
    padding: 4px 12px;
    background: white;
    border: 0.75px solid #D1D1D1;
    border-radius: 5px;
    color: #080808;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-view__action-btn:hover {
    background: #F6F6F6;
    border-color: #9F1238;
}

.final-view__section-divider {
    width: 100%;
    height: 1px;
    background: #E7E7E7;
}

/* Dropdown */
.final-view__dropdown {
    border: 1px solid #E7E7E7;
    border-radius: 4px;
    overflow: hidden;
}

.final-view__dropdown-header {
    padding: 20px;
    background: #F6F6F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.final-view__dropdown-header:hover {
    background: #ECECEC;
}

.final-view__dropdown-title {
    color: black;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
}

.final-view__dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.final-view__dropdown--open .final-view__dropdown-arrow {
    transform: rotate(180deg);
}

.final-view__dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.final-view__dropdown--open .final-view__dropdown-content {
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Scrollbar styling for dropdown content */
.final-view__dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.final-view__dropdown-content::-webkit-scrollbar-track {
    background: #E7E7E7;
}

.final-view__dropdown-content::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 3px;
}

.final-view__dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #9F1238;
}

.final-view__dropdown-item {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #E7E7E7;
    color: #4F4F4F;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.final-view__dropdown-item:hover {
    background: #F9F9F9;
}

.final-view__dropdown-item svg {
    width: 15px;
    height: 15px;
}

/* Color Package */
.final-view__color-package {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E7E7E7;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.final-view__color-package-title {
    color: #5D5D5D;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
}

.final-view__color-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.final-view__color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3.75px solid white;
    box-shadow: 0px 0px 0px 1px #D8D8D8;
    opacity: 0.7;
    position: relative;
}

.final-view__color-swatch:hover {
    opacity: 1;
    transform: scale(1.05);
}

.final-view__color-swatch[data-selected="true"] {
    opacity: 1;
    border: 5px solid white;
    box-shadow: 0px 0px 0px 2px #A50000;
}

.final-view__color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Right Column */
.final-view__right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.final-view__preview {
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 326px;
}

.final-view__preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-view__preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.final-view__flex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Pricing Card */
.final-view__pricing-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #E7E7E7;
    overflow: hidden;
}

.final-view__pricing-header {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.final-view__pricing-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.final-view__pricing-label {
    color: #5D5D5D;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 20px;
    letter-spacing: 1px;
}

.final-view__pricing-value {
    display: flex;
    align-items: baseline;
}

.final-view__pricing-amount {
    color: #A51336;
    font-size: 32px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    line-height: 40px;
}

.final-view__pricing-period {
    color: #080808;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 28px;
}

.final-view__pricing-msrp {
    color: black;
    font-size: 28px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 36px;
}

.final-view__pricing-sale {
    color: #A51336;
    font-size: 32px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    line-height: 40px;
}

/* Currency Note */
.final-view__currency-note {
    padding: 8px 20px 12px 20px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #F0F0F0;
}

.final-view__currency-note-text {
    color: #6D6D6D;
    font-size: 11px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-style: italic;
    line-height: 16px;
    letter-spacing: 0.3px;
}

/* Price Breakdown */
.final-view__pricing-breakdown {
    padding: 12px 20px;
    background: #F6F6F6;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 200px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Scrollbar styling for webkit browsers (Chrome, Safari) */
.final-view__pricing-breakdown::-webkit-scrollbar {
    width: 6px;
}

.final-view__pricing-breakdown::-webkit-scrollbar-track {
    background: #E7E7E7;
}

.final-view__pricing-breakdown::-webkit-scrollbar-thumb {
    background: #D1D1D1;
    border-radius: 3px;
}

.final-view__pricing-breakdown::-webkit-scrollbar-thumb:hover {
    background: #9F1238;
}

.final-view__breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
}

.final-view__breakdown-label {
    color: #4F4F4F;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
}

.final-view__breakdown-value {
    color: black;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 28px;
}

.final-view__breakdown-divider {
    width: 100%;
    height: 1px;
    background: #E7E7E7;
    flex-shrink: 0;
}

/* Customer Information Form */
.final-view__customer-info {
    padding: 20px;
    border-top: 1px solid #E7E7E7;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.final-view__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.final-view__form-label {
    color: #4F4F4F;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
}

.final-view__form-input {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #E7E7E7;
    border-radius: 5px;
    color: #080808;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 20px;
    transition: border-color 0.3s ease;
}

.final-view__form-input:focus {
    outline: none;
    border-color: #9F1238;
}

.final-view__form-input::placeholder {
    color: #B0B0B0;
}

/* Pricing Actions */
.final-view__pricing-actions {
    padding: 20px;
    border-top: 1px solid #E7E7E7;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.final-view__primary-btn {
    width: 100%;
    padding: 12px 16px;
    background: #080808;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.final-view__primary-btn:hover {
    background: #9F1238;
}

.final-view__secondary-actions {
    display: flex;
    gap: 10px;
}

.final-view__secondary-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid #B0B0B0;
    border-radius: 5px;
    color: #080808;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.final-view__secondary-btn:hover {
    background: #F6F6F6;
    border-color: #9F1238;
}

.final-view__pricing-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.final-view__note-text {
    color: black;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 20px;
}

.final-view__note-link {
    color: #BE123B;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
    text-decoration: underline;
    cursor: pointer;
}

.final-view__note-link:hover {
    color: #9F1238;
}

/* Footer */
.final-view__footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-view__footer-text {
    text-align: center;
    color: #6D6D6D;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .final-view__container {
        padding: 40px;
    }

    .final-view__content {
        flex-direction: column;
    }

    .final-view__title {
        font-size: 56px;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    .final-view__container {
        padding: 30px 20px;
    }

    .final-view__header {
        gap: 20px;
    }

    .final-view__title {
        font-size: 42px;
        line-height: 38px;
        letter-spacing: 1.68px;
    }

    .final-view__step-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .final-view__progress {
        width: 100%;
        justify-content: flex-end;
    }

    .final-view__content {
        padding: 20px;
        gap: 30px;
    }

    .final-view__brand-section {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .final-view__brand-logo {
        width: 150px;
        height: auto;
    }

    .final-view__pricing-header {
        flex-direction: column;
        gap: 15px;
    }

    .final-view__pricing-breakdown {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .final-view__breakdown-divider {
        width: 100%;
        height: 1px;
    }

    .final-view__secondary-actions {
        flex-direction: column;
    }

    .final-view__color-swatches {
        justify-content: center;
    }

    .final-view__color-swatch {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .final-view__container {
        padding: 20px 15px;
    }

    .final-view__title {
        font-size: 32px;
        line-height: 30px;
    }

    .final-view__content {
        padding: 15px;
    }

    .final-view__step-description {
        font-size: 14px;
    }

    .final-view__pricing-amount {
        font-size: 24px;
        line-height: 32px;
    }

    .final-view__pricing-period {
        font-size: 14px;
        line-height: 20px;
    }

    .final-view__pricing-sale {
        font-size: 22px;
        line-height: 30px;
    }

    .final-view__breakdown-value {
        font-size: 16px;
        line-height: 24px;
    }

    .final-view__color-swatch {
        width: 45px;
        height: 45px;
    }
}