/* Apple-inspired black and white marine accessories design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #ffffff;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Page Container */
.page-container {
    padding-top: 60px;
}

.page {
    display: none;
    min-height: 100vh;
    padding: 0 20px;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    font-weight: 400;
}

.customer-display {
    margin-bottom: 60px;
}

.customer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(20px);
    max-width: 400px;
    margin: 0 auto;
}

.customer-details h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.customer-details p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.deal-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Page Headers */
.page-header {
    text-align: center;
    padding: 80px 0 60px;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 80px;
}

/* Maintenance Grid */
.maintenance-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.maintenance-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.maintenance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.maintenance-card.popular {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.maintenance-card.diamond {
    border-color: #87CEEB;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.maintenance-header {
    text-align: center;
    padding: 20px 20px 15px;
    background: rgba(255, 255, 255, 0.05);
}

.maintenance-header.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
}

.maintenance-header.platinum {
    background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
    color: #000000;
}

.maintenance-header.diamond {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    color: #000000;
}

.maintenance-header h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.value-badge {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}

.maintenance-features {
    padding: 20px;
    flex: 1;
}

.feature {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature:last-child {
    border-bottom: none;
}

.feature.discount {
    color: #90EE90;
    font-weight: 600;
}

.maintenance-card .price-display {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-price {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}

.monthly-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.fine-print {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fine-print p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Monthly pricing in price display */
.price-display .monthly {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Product image variations */
.product-image.ceramic::before {
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.ceramic-tower::before {
    background: linear-gradient(135deg, #66BB6A 0%, #43A047 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.ceramic-interior::before {
    background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.clear-bra::before {
    background: linear-gradient(135deg, #26A69A 0%, #00695C 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.storage-cover::before {
    background: linear-gradient(135deg, #78909C 0%, #455A64 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.window-tint::before {
    background: linear-gradient(135deg, #5C6BC0 0%, #3F51B5 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.thruster::before {
    background: linear-gradient(135deg, #FF7043 0%, #D84315 100%);
    border-radius: 50%;
    width: 70px;
    height: 70px;
}

.product-image.transom-lights::before {
    background: linear-gradient(135deg, #FFD54F 0%, #FF8F00 100%);
    border-radius: 8px;
    width: 60px;
    height: 60px;
}

.product-image.transom-lights-medium::before {
    background: linear-gradient(135deg, #FFCA28 0%, #FF8F00 100%);
    border-radius: 8px;
    width: 50px;
    height: 50px;
}

.product-image.transom-lights-small::before {
    background: linear-gradient(135deg, #FFB74D 0%, #FF8F00 100%);
    border-radius: 8px;
    width: 40px;
    height: 40px;
}

.product-image.light-bar::before {
    background: linear-gradient(135deg, #FFF176 0%, #FBC02D 100%);
    border-radius: 4px;
    width: 80px;
    height: 20px;
}

.product-image.shade-sail::before {
    background: linear-gradient(135deg, #A1C181 0%, #7FB069 100%);
    border-radius: 50% 50% 0 0;
    width: 70px;
    height: 50px;
}

.product-image.shade-sail-small::before {
    background: linear-gradient(135deg, #A1C181 0%, #7FB069 100%);
    border-radius: 50% 50% 0 0;
    width: 50px;
    height: 35px;
}

.product-image.prop-kit::before {
    background: linear-gradient(135deg, #90A4AE 0%, #546E7A 100%);
    border-radius: 50%;
    width: 65px;
    height: 65px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.product-card.selected .select-button {
    background: #ffffff;
    color: #000000;
}

/* Remove duplicate Selected text - handled by JavaScript */

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.product-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info .product-actions {
    margin-top: auto;
    padding-top: 20px;
}

.product-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.price-display {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.savings-display {
    background: #FF6B35;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Decline button */
.nav-button.decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    padding: 10px 20px;
}

.nav-button.decline:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
}

.modal-content h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-btn.primary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.modal-btn.secondary {
    background: #ffffff;
    color: #000000;
}

.modal-btn.secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 28px 20px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .nav-button.decline {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4CAF50;
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 350px;
}

.success-message.show {
    display: flex;
    animation: slideIn 0.3s ease-out;
}

.success-message.error {
    background: #f44336;
}

.close-message {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Customer Edit Form */
.customer-edit-form {
    margin-top: 30px;
    padding: 0 20px;
}

.edit-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.edit-form-card h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #4CAF50;
}

/* Form Validation Errors */
.form-error {
    background: #f44336;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.field-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

.form-group input.error {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.1);
}

.form-group input.valid {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.primary-button.loading,
.select-button.loading,
.included-button.loading {
    color: transparent;
}

/* Card Actions */
.card-actions,
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Maintenance card actions - stack vertically with padding */
.maintenance-card .card-actions {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 20px;
}

.maintenance-card .card-actions .select-button,
.maintenance-card .card-actions .included-button {
    flex: none;
    width: 100%;
}

.card-actions .select-button,
.product-actions {
    flex-direction: column;
}

.product-actions .select-button {
    width: 100%;
}

.included-button {
    flex: 1;
    background: #FF6B35;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.included-button:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

.product-card.included {
    border-color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

.product-card.included .included-button {
    background: #4CAF50;
}

.product-card.included .included-button:hover {
    background: #45a049;
}

.select-button {
    width: 100%;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Initial Welcome Form */
.initial-form-container {
    margin-bottom: 40px;
}

.welcome-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.welcome-form-card h3 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.initial-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #2d2d2d;
    color: #ffffff;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Customer Edit Form */
.customer-card {
    position: relative;
}

.edit-info-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-info-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.customer-edit-form {
    margin: 30px 0;
    animation: slideDown 0.3s ease-out;
}

.edit-form-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.edit-form-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #2d2d2d;
    color: #ffffff;
}

.edit-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-primary {
    background: #4CAF50;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.included-button {
    width: 100%;
    background: transparent;
    color: #FFA500;
    border: 2px solid rgba(255, 165, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.included-button:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.5);
}

.product-card.included .included-button {
    background: #FFA500;
    color: #000000;
    border-color: #FFA500;
}

.product-card.included {
    background: rgba(255, 165, 0, 0.05);
    border-color: rgba(255, 165, 0, 0.3);
}

.product-card.included .select-button {
    opacity: 0.5;
    pointer-events: none;
}

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

/* Buttons */
.primary-button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.primary-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.primary-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Page Navigation */
.page-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 0 120px 0; /* Add bottom padding to prevent overlap with floating indicator */
}

.nav-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.nav-button.primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.nav-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Summary Page */
.summary-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Thank You Page */
.thankyou-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.thankyou-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.thankyou-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: celebration 2s ease-in-out infinite;
}

@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

.thankyou-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.thankyou-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.thankyou-message {
    margin-bottom: 40px;
}

.thankyou-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.thankyou-close {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 30px;
}

.thankyou-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.thankyou-actions a.primary-button {
    text-decoration: none;
    text-align: center;
}

.thankyou-actions .primary-button,
.thankyou-actions .secondary-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    min-width: 180px;
}

.thankyou-actions .secondary-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.thankyou-actions .secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.thankyou-contact {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.thankyou-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.thankyou-contact p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.thankyou-contact a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.thankyou-contact a:hover {
    text-decoration: underline;
}

.selected-accessories h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 20px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-item h4 {
    font-size: 18px;
    font-weight: 600;
}

.selected-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 4px;
}

.selected-item-price {
    font-size: 18px;
    font-weight: 600;
}

.included-item {
    background: rgba(255, 165, 0, 0.05);
    border-left: 3px solid #FFA500;
    padding-left: 20px;
}

.included-badge {
    color: #FFA500;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 165, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.included-price {
    color: rgba(255, 165, 0, 0.8);
    text-decoration: line-through;
}

.order-total {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.pricing-breakdown {
    margin-bottom: 30px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.price-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    font-size: 24px;
    font-weight: 700;
}

/* Selection Indicator */
.selection-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.selection-indicator.visible {
    display: block;
}

.indicator-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.indicator-content span {
    color: #ffffff;
    font-weight: 600;
}

.indicator-content button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-item {
        padding: 16px 24px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-item.active::after {
        display: none;
    }

    .nav-item.active {
        background: rgba(255, 255, 255, 0.08);
    }

    .maintenance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .maintenance-header h3 {
        font-size: 20px;
    }

    /* Tablet optimizations */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .customer-card {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
    }

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

    /* Tablet summary page */
    .summary-container {
        gap: 40px;
    }

    .main-price {
        font-size: 24px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 32px;
    }

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

    .summary-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .order-total {
        position: static;
    }

    .customer-card {
        padding: 30px;
    }

    .selection-indicator {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .indicator-content {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 0 15px;
    }

    .customer-card {
        padding: 20px;
    }

    .product-info {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Loading and transitions */
.page {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Success/Error messages */
.message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 1001;
    min-width: 300px;
    text-align: center;
}

.message.success {
    background: rgba(52, 199, 89, 0.9);
    color: #ffffff;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.message.error {
    background: rgba(255, 69, 58, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 69, 58, 0.3);
}

/* Prevent floating indicator overlap on mobile */
@media (max-width: 768px) {
    .page-nav {
        padding: 40px 0 140px 0;
    }

    .summary-container {
        padding-bottom: 120px;
    }
}

/* Additional responsive maintenance grid */
@media (max-width: 480px) {
    .maintenance-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Mobile-optimized maintenance cards */
    .maintenance-card {
        padding: 15px;
    }

    .maintenance-header h3 {
        font-size: 18px;
    }

    .main-price {
        font-size: 20px;
    }

    .monthly-price {
        font-size: 12px;
    }

    /* Mobile product cards */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 18px;
    }

    /* Mobile floating indicator */
    .selection-indicator {
        left: 10px;
        right: 10px;
        padding: 12px 15px;
    }

    .indicator-content {
        gap: 15px;
    }

    .indicator-content button {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Mobile summary page */
    .summary-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile page navigation */
    .page-nav {
        flex-direction: column;
        gap: 12px;
        padding: 30px 0 160px 0;
    }

    .nav-button {
        width: 100%;
        padding: 14px 20px;
    }

    /* Touch-friendly buttons */
    .select-button,
    .included-button,
    .primary-button {
        min-height: 44px; /* Apple's recommended touch target */
        padding: 12px 16px;
    }

    /* Mobile Thank You page */
    .thankyou-content {
        padding: 40px 20px;
    }

    .thankyou-icon {
        font-size: 60px;
    }

    .thankyou-title {
        font-size: 2.2rem;
    }

    .thankyou-subtitle {
        font-size: 1.2rem;
    }

    .thankyou-actions {
        flex-direction: column;
        align-items: center;
    }

    .thankyou-actions .primary-button,
    .thankyou-actions .secondary-button {
        width: 100%;
        max-width: 280px;
    }
}