:root {
    /* Modern Color Palette */
    --primary-color: #0f172a;
    --primary-dark: #1e293b;
    --secondary-color: #3b82f6;
    --accent-color: #6366f1;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text > div:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-address {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-base);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-base);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 60px;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(14, 165, 233, 0.8)), url('https://images.unsplash.com/photo-1520333789090-1afc82db536a?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    padding-top: 0;
}

.hero-overlay {
    display: none;
}

.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: none;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hero-price {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 1.5rem;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    /* padding removed */
}

.upload-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.upload-box {
    background: var(--white);
    border: 4px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box.highlight {
    border-color: var(--secondary-color);
    background: var(--gray-50);
    transform: scale(1.02);
}

.upload-box i {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-content {
    text-align: center;
}

.upload-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.upload-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.upload-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Photo Count Display */
.photo-limit {
    text-align: center;
    color: var(--white);
    margin: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.price-calculator {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1rem auto;
    max-width: 400px;
    box-shadow: var(--shadow-md);
}

.calc-item, .calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-color);
}

.calc-total {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Selected Photos Grid */
.selected-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.selected-photo {
    position: relative;
    margin: 8px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-preview {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.photo-preview img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.photo-info {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
}

.remove-photo {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo:hover {
    color: var(--danger-color);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

/* Loading States */
.selected-photo.loading .photo-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.selected-photo.loading .loading-text {
    color: white;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

.selected-photo.preview-error .photo-overlay {
    background: rgba(255, 0, 0, 0.3);
    opacity: 1;
}

.selected-photo.preview-error .loading-text {
    color: white;
    font-size: 14px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-preview:hover .photo-overlay {
    opacity: 1;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Services Section */
.services {
    padding: 4rem 5%;
    background-color: var(--gray-100);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.services h2 + p {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: var(--gray-100);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: var(--transition-base);
}

.service-card:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Guidelines Section */
.guidelines {
    padding: 4rem 5%;
    background-color: var(--white);
}

.guidelines h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.guidelines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-200);
}

.guideline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.guideline-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    transition: var(--transition-base);
}

.guideline-item i.fa-check {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.guideline-item i.fa-times {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.guideline-item i.fa-info-circle,
.guideline-item i.fa-exclamation-triangle {
    color: var(--accent-color);
    background: rgba(245, 158, 11, 0.1);
}

.guideline-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Buttons */
.confirm-btn {
    display: block;
    background: var(--success-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    margin: 1.5rem auto;
    transition: all 0.2s ease;
    cursor: pointer;
    width: auto;
    min-width: 200px;
    text-align: center;
}

.confirm-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.confirm-btn:disabled {
    background: var(--gray-200);
    cursor: not-allowed;
    transform: none;
}

.checkout-btn {
    width: 100%;
    background: var(--success-color);
    color: var(--white);
    padding: 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    filter: brightness(1.1);
}

.checkout-btn:disabled {
    background: var(--gray-200);
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--white);
    padding: 2.5rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
}

.footer-section .shipping-header {
    margin-top: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.375rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .upload-box {
        padding: 25px 15px;
    }
    
    .upload-box h3 {
        font-size: 1.5rem;
    }
    
    nav {
        flex-direction: row;
        padding: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: var(--white);
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }

    .nav-menu li a:hover {
        background: var(--gray-100);
    }

    .nav-menu li a::after {
        display: none;
    }
    
    .logo {
        margin: 0;
    }

    .logo-text > div:first-child {
        font-size: 1.5rem;
    }

    .logo-address {
        font-size: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .confirm-btn {
        width: 100%;
        margin: 1rem auto;
    }
}

/* Checkout Section */
.checkout-section {
    padding: 2rem max(5%, calc((100% - 1400px) / 2));
    background-color: var(--white);
    width: 100%;
    margin: 0 auto;
}

.checkout-container {
    display: grid;
    grid-template-columns: minmax(300px, 350px) 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 1400px;
    margin: 0 auto;
}

.order-summary {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.order-summary h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--text-color);
}

.modify-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
}

/* Form Styles */
.checkout-form {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.form-group {
    background: #fff;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
    width: 100%;
}

.form-group h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 600;
}

.form-group h4 {
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Input Fields */
.form-group input,
.bop-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.form-group input:focus,
.bop-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.bop-search input::placeholder {
    color: var(--text-light);
}

.form-group input.error {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* BOP Search Section */
.bop-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#searchBop {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 120px;
    font-size: 0.95rem;
}

#searchBop:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Inmate Information Display */
#inmateInfo {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--gray-200);
}

#inmateInfo p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

/* Address Selection */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.address-option {
    padding: 1.25rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
}

.facility-type-header {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.address-option:hover {
    border-color: var(--secondary-color);
    background-color: var(--gray-50);
}

.address-option.selected {
    background-color: rgba(59, 130, 246, 0.05);
    border-color: var(--secondary-color);
}

.address-option p {
    margin: 0.25rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Navigation Buttons */
.form-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.next-step-btn,
.back-step-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-step-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.next-step-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-step-btn {
    background-color: var(--white);
    color: var(--text-color);
    border: 1.5px solid var(--gray-200);
}

.back-step-btn:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
}

/* Payment Section */
.payment-container {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1.5px solid var(--gray-200);
}

.stripe-elements-container {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s ease;
}

.stripe-elements-container:hover {
    border-color: var(--secondary-color);
}

#card-errors {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: left;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: var(--success-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    font-size: 1rem;
}

.checkout-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkout-btn.processing {
    background-color: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.confirmation-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.photo-count-message {
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.order-details {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-top: 2px solid var(--gray-200);
    position: relative;
}

.summary-total::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--gray-50);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.modal-actions button {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    min-width: 160px;
}

.modal-cancel {
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text-color);
}

.modal-cancel:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.modal-confirm {
    background: var(--success-color);
    border: none;
    color: var(--white);
}

.modal-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .order-summary {
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 1rem;
    }

    .checkout-container {
        padding: 1rem;
        gap: 1rem;
    }

    .form-group {
        padding: 1.25rem;
    }
}

/* Order Confirmation Page */
.order-confirmation {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.confirmation-container {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.loading-state,
.success-state,
.error-state {
    padding: 2rem;
}

.loading-state i,
.success-state i,
.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-state i {
    color: #3b82f6;
}

.success-state i {
    color: #10b981;
}

.error-state i {
    color: #ef4444;
}

.order-details {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: left;
}

.order-details h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.order-details p {
    margin: 0.5rem 0;
    color: #4b5563;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.button:hover {
    background: #2563eb;
}

.error-message {
    color: #ef4444;
    margin: 1rem 0;
}

/* Form Styles */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-row {
    margin-bottom: 1rem;
}

.form-field {
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field input::placeholder {
    color: var(--text-light);
}

#payment-element {
    margin-top: 1.5rem;
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 5%;
    padding-top: calc(60px + 4rem);
    background-color: var(--white);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.contact-info h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.contact-info i {
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-note {
    color: var(--text-light) !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem;
}

.contact-form {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    transition: var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form .submit-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
}

.contact-form .submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
        padding-top: calc(60px + 2rem);
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Policy Pages Styles */
.policy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: calc(60px + 2rem); /* Account for fixed header height plus some spacing */
}

.policy-content h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.policy-content section {
    margin: 2rem 0;
}

.policy-content h2 {
    color: #444;
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
}

.policy-content h3 {
    color: #555;
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem;
}

.policy-content p {
    line-height: 1.6;
    margin: 1rem 0;
    color: #666;
}

.policy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li {
    margin: 0.5rem 0;
    line-height: 1.5;
    color: #666;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 0 1rem;
    }

    .policy-content h1 {
        font-size: 2rem;
    }

    .policy-content h2 {
        font-size: 1.5rem;
    }

    .policy-content h3 {
        font-size: 1.2rem;
    }
}

/* Terms Notice */
.terms-notice {
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.terms-notice a {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition-base);
    font-weight: 500;
}

.terms-notice a:hover {
    color: var(--gray-200);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Checkout Terms Notice */
.terms-notice.checkout-terms {
    background: var(--gray-50);
    color: var(--text-color);
    margin-top: 1.5rem;
    text-shadow: none;
}

.terms-notice.checkout-terms a {
    color: var(--secondary-color);
    font-weight: 500;
}

.terms-notice.checkout-terms a:hover {
    color: var(--accent-color);
    text-shadow: none;
}
