/* Font Faces */
@font-face {
    font-family: 'Choose Elegant';
    src: url('../fonts/CHOOSE ELEGANT Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Elegant Personal';
    src: url('../fonts/BravenRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Variables */
:root {
    --color-cream: #faf4dc;
    --color-gold: #928333;
    --color-rose-gold: #a36d61;
    --color-sage: #566968;
    --color-light-gold: #c7bd89;
    --color-ivory: #fffff0;
    --color-white: #ffffff;
    --color-error: #d93025;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Elegant Personal', 'Georgia', serif;
    background-color: var(--color-cream);
    color: var(--color-gold);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-top: 50px; /* Adjust for fixed progress bar */
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 800px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(146, 131, 51, 0.1);
    overflow: hidden;
    margin-top: 20px; /* Add margin to not be overlapped by progress bar */
}

/* Form Section */
.form-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-ivory) 100%);
    padding: 40px;
    border-bottom: 1px solid var(--color-light-gold);
}

.section-header h2 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 28px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-description {
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 1rem;
    color: var(--color-sage);
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Content */
.form-content {
    padding: 40px;
}

/* Form Groups */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    color: var(--color-sage);
    background: var(--color-white);
    border: 1px solid var(--color-light-gold);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(86, 105, 104, 0.5);
    font-style: italic;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(146, 131, 51, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

.error-message {
    color: var(--color-error);
    font-size: 12px;
    margin-top: 5px;
}

/* Form Navigation */
.form-navigation {
    padding: 30px 40px;
    background: var(--color-ivory);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 14px 30px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-draft {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-draft:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.btn-next,
.btn-previous {
    background: var(--color-gold);
    color: var(--color-white);
}

.btn-next:hover,
.btn-previous:hover {
    background: var(--color-rose-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(163, 109, 97, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Package Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.package-pages {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-number {
    font-size: 3rem;
    color: var(--color-gold);
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-weight: normal;
    line-height: 1;
}

.page-label {
    font-size: 1rem;
    color: var(--color-gold);
    font-family: 'Braven', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

.package-investment {
    padding: 1.5rem;
    border-top: 2px solid var(--color-light-gold);
    text-align: center;
    margin-top: auto;
}

.investment-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-sage);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: 'Elegant Personal', 'Georgia', serif;
}

.investment-price {
    font-size: 2rem;
    color: var(--color-gold);
    font-weight: bold;
    font-family: 'Choose Elegant', 'Georgia', serif;
}

.package-card {
    position: relative;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-ivory) 100%);
    border: 1px solid var(--color-light-gold);
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(146, 131, 51, 0.15);
    transform: translateY(-3px);
}

.package-card.selected,
.package-card.is-selected {
    border-color: var(--color-rose-gold);
    border-width: 2px;
    background: linear-gradient(135deg, var(--color-ivory) 0%, #fff9f0 100%);
    box-shadow: 0 10px 40px rgba(163, 109, 97, 0.2);
}

.package-card.featured {
    border-color: var(--color-gold);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.package-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.package-icon .page-count {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-gold);
    line-height: 1;
    font-family: 'Choose Elegant', 'Georgia', serif;
}

.package-icon .page-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-sage);
    margin-top: 5px;
    text-transform: uppercase;
}

.package-header h3 {
    font-size: 24px;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.package-features li {
    padding: 8px 0;
    color: var(--color-sage);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

.package-investment {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-light-gold);
}

.investment-label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-sage);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.package-investment .price {
    font-size: 32px;
    color: var(--color-rose-gold);
    font-family: 'Choose Elegant', 'Georgia', serif;
}

.hidden-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ... (rest of the original CSS) ... */

/* --- Refactored UI Elements --- */

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #eee;
    z-index: 1001;
}

.progress-bar {
    width: 12.5%; /* 1/8 */
    height: 100%;
    background-color: var(--color-gold);
    transition: width 0.4s ease-in-out;
}

.progress-steps {
    display: none; /* As per design, the numeric steps are not shown */
}

/* Loading Overlay */
.loading-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--color-gold);
    font-family: 'Elegant Personal', 'Georgia', serif;
}

.loading-overlay.active {
    display: flex; /* Show with JS */
}

.loader {
    border: 5px solid var(--color-light-gold);
    border-top: 5px solid var(--color-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Design for Package Grid */
@media (max-width: 768px) {
    .package-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 80px;
    }
    
    .package-card {
        min-height: auto;
    }
    
    .package-icon .page-count {
        font-size: 36px;
    }
    
    .package-header h3 {
        font-size: 20px;
    }
    
    .package-investment .price {
        font-size: 28px;
    }
}

/* Helper text styling */
.helper-text {
    font-size: 12px;
    color: var(--color-sage);
    font-style: italic;
    margin-top: 5px;
    opacity: 0.8;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(450px);
    transition: transform 0.4s ease;
    z-index: 10000;
    font-size: 14px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.notification.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Art Style Selection Grid */
.art-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.art-style-card {
    position: relative;
    background: white;
    border: 2px solid var(--color-light-gold);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.art-style-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 131, 51, 0.15);
}

.art-style-card.selected {
    border-color: var(--color-rose-gold);
    border-width: 3px;
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
    box-shadow: 0 8px 25px rgba(163, 109, 97, 0.2);
}

.art-style-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--color-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-ivory) 0%, #fff9f0 100%);
}

.placeholder-art .art-icon {
    font-size: 48px;
    opacity: 0.5;
}

.art-style-card h4 {
    font-size: 16px;
    color: var(--color-gold);
    margin: 10px 0 5px;
    font-family: 'Choose Elegant', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.art-style-card p {
    font-size: 12px;
    color: var(--color-sage);
    margin: 0;
    font-style: italic;
}

.art-style-card.selected:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--color-rose-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .art-style-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .art-style-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Message */
.alert-message {
    background: var(--color-cream);
    border: 2px dashed var(--color-gold);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-family: 'Elegant Personal', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Story Method Toggle */
.story-method-toggle {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.toggle-btn {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--color-light-gold);
    border-radius: 8px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    color: var(--color-sage);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-btn:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

img.toggle-icon {
    filter: brightness(0) saturate(100%) invert(38%) sepia(89%) saturate(392%) hue-rotate(10deg) brightness(91%) contrast(86%);
}

.toggle-btn.active img.toggle-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.story-content {
    margin-top: 20px;
}

/* Story Fields */
.story-field {
    margin-bottom: 1.5rem;
}

.story-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-gold);
    font-family: 'Elegant Personal', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-field textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--color-light-gold);
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    resize: vertical;
}

.story-field textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.story-guidance {
    background: var(--color-cream);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--color-sage);
}

#typed-story {
    width: 100%;
    min-height: 250px;
    padding: 15px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    line-height: 1.6;
    border: 1px solid var(--color-light-gold);
    border-radius: 4px;
    resize: vertical;
}

.file-upload-area {
    border: 2px dashed var(--color-light-gold);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(250, 244, 220, 0.3);
}

.file-upload-area:hover {
    border-color: var(--color-gold);
    background: rgba(250, 244, 220, 0.5);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 20px;
}

.file-upload-label > span:first-of-type {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 48px;
    color: var(--color-gold);
}

.upload-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(57%) sepia(39%) saturate(442%) hue-rotate(10deg) brightness(89%) contrast(84%);
    flex-shrink: 0;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.file-upload-label .helper-text {
    font-size: 12px;
    color: var(--color-sage);
    font-style: italic;
    text-transform: none;
    letter-spacing: normal;
    display: block;
    width: 100%;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--color-gold);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-cream);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-body img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 28px;
    color: var(--color-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-body p {
    font-size: 16px;
    color: var(--color-sage);
    line-height: 1.6;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Moleskine Modal Styles */
.modal-content-wide {
    max-width: 1100px;
    width: 90%;
}

.moleskine-gallery {
    margin: 30px 0;
    background: var(--color-ivory);
    padding: 20px;
    border-radius: 8px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-gold);
    box-shadow: 0 2px 8px rgba(146, 131, 51, 0.3);
}

.moleskine-features {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 30px;
}

.feature-list h4,
.feature-description h4 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 20px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-light-gold);
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list ul li {
    font-size: 14px;
    color: var(--color-sage);
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(199, 189, 137, 0.3);
}

.feature-list ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

.feature-description p {
    font-size: 15px;
    color: var(--color-sage);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-description .special-feature {
    background: var(--color-ivory);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--color-gold);
    margin-top: 25px;
}

.feature-description .special-feature strong {
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .moleskine-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content-wide {
        width: 95%;
    }
}

/* Character Card Styles */
.character-card {
    background: var(--color-ivory);
    border: 1px solid var(--color-light-gold);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

.character-number {
    color: var(--color-gold);
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.photo-upload-section h4 {
    color: var(--color-gold);
    font-family: 'Elegant Personal', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.5rem;
}

.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.photo-upload-slot {
    border: 2px dashed var(--color-light-gold);
    border-radius: 8px;
    padding: 20px;
    background: rgba(250, 244, 220, 0.3);
    position: relative;
}

.photo-label {
    display: block;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-family: 'Elegant Personal', 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.photo-helper-text {
    font-size: 0.85rem;
    color: var(--color-sage);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-style: italic;
}

.photo-upload-slot input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100px;
    cursor: pointer;
    z-index: 2;
}

.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-label:hover {
    background: rgba(250, 244, 220, 0.5);
}

.photo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    filter: brightness(0) saturate(100%) invert(57%) sepia(39%) saturate(442%) hue-rotate(10deg) brightness(89%) contrast(84%);
}

.photo-preview {
    margin-top: 10px;
    text-align: center;
}

.photo-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Grid for Multiple Images */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.thumbnail-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-ivory);
    border: 2px solid var(--color-light-gold);
}

.thumbnail-item .thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px;
    font-size: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.thumbnail-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    font-size: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
}

.remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: 2px solid var(--color-rose-gold);
    background: white;
    color: var(--color-rose-gold);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: var(--color-rose-gold);
    color: white;
    transform: rotate(90deg);
}

/* Material Selection Styles */
.material-category {
    margin-bottom: 30px;
}

.material-category h4 {
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-category .price-tag {
    font-size: 12px;
    color: var(--color-rose-gold);
    font-weight: normal;
    letter-spacing: 1px;
}

.material-category .price-tag.premium-price {
    display: none;
}

.material-category.package-dependent {
    display: none;
    opacity: 0.5;
    pointer-events: none;
}

.material-category.package-dependent.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Availability notes */
.availability-note {
    font-size: 0.85em;
    color: #999;
    font-weight: normal;
    margin-left: 8px;
}

.material-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.material-swatch {
    position: relative;
}

.material-swatch input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.material-swatch label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: white;
}

.material-swatch label:hover {
    border-color: var(--color-light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.material-swatch input[type="radio"]:checked + label {
    border-color: var(--color-rose-gold);
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
    box-shadow: 0 6px 20px rgba(163, 109, 97, 0.2);
}

.material-swatch input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-rose-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.material-swatch img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.material-swatch span {
    font-size: 11px;
    color: var(--color-sage);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Elegant Personal', 'Georgia', serif;
}

/* Checkbox Group for Book Dedication */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--color-sage);
    font-style: italic;
    margin: 0;
    cursor: pointer;
}

/* Add-ons List Styles */
.addons-list {
    margin-top: 20px;
}

.addon-item {
    background: var(--color-ivory);
    border: 2px solid var(--color-light-gold);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.addon-item:hover {
    border-color: var(--color-gold);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(146, 131, 51, 0.1);
}

.addon-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.addon-item label {
    display: block;
    padding: 20px 20px 20px 50px;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.addon-item label::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.addon-item input[type="checkbox"]:checked + label::before {
    background: var(--color-gold);
}

.addon-item input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.addon-item input[type="checkbox"]:checked ~ label {
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
}

.addon-content {
    flex: 1;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.addon-name {
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.addon-price {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 18px;
    color: var(--color-rose-gold);
    font-weight: bold;
}

.addon-subtext {
    font-size: 13px;
    color: var(--color-sage);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.quick-view-link {
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-gold);
    margin-left: 5px;
    transition: all 0.3s ease;
}

.quick-view-link:hover {
    color: var(--color-rose-gold);
    border-bottom-color: var(--color-rose-gold);
}

.included-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: var(--color-gold);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-style: normal;
}

/* When gift box is included with Heirloom */
.addon-item.included {
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
    border-color: var(--color-gold);
}

.addon-item.included .addon-price {
    text-decoration: line-through;
    opacity: 0.5;
}

.addon-item.included input[type="checkbox"] {
    pointer-events: none;
}

.addon-item.included input[type="checkbox"] + label::before {
    background: var(--color-gold);
}

.addon-item.included input[type="checkbox"] + label::after {
    content: "✓";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Timeline Breakdown Styles */
.timeline-breakdown {
    background: var(--color-ivory);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.timeline-breakdown h4 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 20px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-align: center;
}

.timeline-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.timeline-phase {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-light-gold);
    transition: all 0.3s ease;
}

.timeline-phase:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(146, 131, 51, 0.1);
}

.phase-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.phase-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) saturate(100%) invert(57%) sepia(39%) saturate(442%) hue-rotate(10deg) brightness(89%) contrast(84%);
}

.phase-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phase-name {
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 16px;
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.phase-duration {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 18px;
    color: var(--color-rose-gold);
    font-weight: bold;
}

.phase-description {
    font-size: 13px;
    color: var(--color-sage);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Rush Order Checkbox Styling */
.rush-order-group {
    margin: 30px 0;
}

.rush-order-group .checkbox-wrapper {
    background: var(--color-ivory);
    border: 2px solid var(--color-light-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.rush-order-group .checkbox-wrapper:hover {
    border-color: var(--color-gold);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(146, 131, 51, 0.1);
}

.rush-order-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.rush-order-group label {
    display: block;
    padding: 20px 20px 20px 50px;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.rush-order-group label::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.rush-order-group input[type="checkbox"]:checked + label::before {
    background: var(--color-gold);
}

.rush-order-group input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.rush-order-group input[type="checkbox"]:checked ~ label {
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
}

@media (max-width: 768px) {
    .timeline-phases {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Review & Submit Section Styles */
.review-content {
    background: var(--color-ivory);
    padding: 30px;
    border-radius: 8px;
}

.summary-section {
    background: white;
    border: 1px solid var(--color-light-gold);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-light-gold);
}

.summary-header h3 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 20px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.edit-section-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-section-btn:hover {
    background: var(--color-gold);
    color: white;
    transform: translateY(-2px);
}

.summary-content {
    font-size: 14px;
    color: var(--color-sage);
    line-height: 1.8;
}

.summary-content .summary-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.summary-content .summary-label {
    font-weight: 600;
    color: var(--color-gold);
    margin-right: 10px;
}

.summary-content .summary-value {
    flex: 1;
    text-align: right;
}

/* Total Section */
.total-section {
    background: linear-gradient(135deg, #fffff5 0%, var(--color-ivory) 100%);
    border: 2px solid var(--color-gold);
}

.price-breakdown {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-light-gold);
    border-bottom: 1px solid var(--color-light-gold);
}

.price-breakdown .price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.price-breakdown .price-label {
    color: var(--color-sage);
}

.price-breakdown .price-value {
    color: var(--color-gold);
    font-weight: 600;
}

.total-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.total-label {
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 18px;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 32px;
    color: var(--color-rose-gold);
    font-weight: bold;
}

/* Terms Section */
.terms-section {
    background: var(--color-cream);
    border: 2px dashed var(--color-gold);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.terms-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox-wrapper label {
    font-size: 16px;
    color: var(--color-gold);
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.terms-link {
    color: var(--color-rose-gold);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: var(--color-gold);
}

/* Terms Modal */
.modal-content-terms {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.terms-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.terms-content h4 {
    font-family: 'Choose Elegant', 'Georgia', serif;
    font-size: 18px;
    color: var(--color-gold);
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terms-content p {
    font-size: 14px;
    color: var(--color-sage);
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--color-light-gold);
}

#accept-terms-btn {
    padding: 12px 30px;
    background: var(--color-gold);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Elegant Personal', 'Georgia', serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-terms-btn:hover {
    background: var(--color-rose-gold);
    transform: translateY(-2px);
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ========================================== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .form-container {
        max-width: 900px;
    }
}

/* Small Desktop / Large Tablet (1024px) */
@media (max-width: 1024px) {
    .form-container {
        max-width: 90%;
    }
    
    .form-content {
        padding: 30px;
    }
    
    .section-header {
        padding: 30px;
    }
    
    /* Package Grid - 2 columns on tablet */
    .package-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet (768px) - Existing rules plus additions */
@media (max-width: 768px) {
    /* Form Container */
    .form-container {
        max-width: 95%;
        margin: 10px auto;
        border-radius: 0;
    }
    
    /* Form Content */
    .form-content {
        padding: 20px;
    }
    
    /* Section Header */
    .section-header {
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    /* Form Navigation - Stack buttons vertically */
    .form-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation .btn {
        width: 100%;
        padding: 16px;
    }
    
    /* Hide Save Draft on mobile or make it secondary */
    .btn-draft {
        order: 3;
        opacity: 0.8;
        font-size: 12px;
    }
    
    /* Character Cards */
    .character-card {
        padding: 20px;
    }
    
    .photo-upload-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Material Grid */
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Timeline Phases */
    .timeline-phases {
        grid-template-columns: 1fr;
    }
    
    /* Review Sections */
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .edit-section-btn {
        width: 100%;
    }
    
    /* Price Breakdown */
    .total-price {
        font-size: 28px;
    }
    
    /* Modal Content */
    .modal-content,
    .modal-content-wide {
        width: 95%;
        margin: 20px auto;
        max-height: 90vh;
    }
}

/* Large Phone (480px) */
@media (max-width: 480px) {
    /* Typography adjustments */
    body {
        font-size: 14px;
    }
    
    /* Form Container - Full width on mobile */
    .form-container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    /* Reduce all padding */
    .form-content {
        padding: 15px;
    }
    
    .section-header {
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .section-description {
        font-size: 12px;
    }
    
    /* Form Groups */
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    /* Navigation - Fixed at bottom for better UX */
    .form-navigation {
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid var(--color-light-gold);
        z-index: 100;
        padding: 15px;
    }
    
    /* Package Grid - Stack vertically on mobile */
    .package-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .package-card {
        min-width: auto;
        width: 100%;
    }
    
    /* Art Style Grid */
    .art-style-grid {
        grid-template-columns: 1fr;
    }
    
    /* Story Method Toggle */
    .story-method-toggle {
        flex-direction: column;
    }
    
    .toggle-btn {
        width: 100%;
    }
    
    /* Character Details */
    .character-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .character-number {
        font-size: 1.2rem;
    }
    
    /* File Upload Areas - Larger touch targets */
    .file-upload-area,
    .photo-upload-slot {
        min-height: 120px;
    }
    
    .file-upload-label,
    .photo-upload-label {
        padding: 30px 15px;
    }
    
    /* Material Options */
    .material-option {
        padding: 12px;
    }
    
    .material-name {
        font-size: 12px;
    }
    
    /* Addons Grid */
    .addon-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline */
    .timeline-phase {
        padding: 15px;
    }
    
    /* Review Section */
    .summary-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .summary-content {
        font-size: 12px;
    }
    
    /* Notifications - Full width on mobile */
    .notification {
        right: 0;
        left: 0;
        min-width: 100%;
        max-width: 100%;
        border-radius: 0;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    /* Progress Bar */
    .progress-container {
        height: 6px;
    }
    
    /* Terms checkbox */
    .terms-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .terms-checkbox-wrapper {
        margin-bottom: 10px;
    }
}

/* Small Phone (375px - iPhone SE, etc.) */
@media (max-width: 375px) {
    /* Further reduce padding */
    .form-content {
        padding: 12px;
    }
    
    .section-header {
        padding: 12px;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    /* Smaller buttons */
    .btn {
        padding: 14px 20px;
        font-size: 12px;
    }
    
    /* Package cards full width */
    .package-card {
        width: 100%;
        min-height: auto;
    }
    
    /* Make package content more compact on small screens */
    .package-card {
        padding: 20px 15px;
    }
    
    .package-header {
        margin-bottom: 15px;
    }
    
    .package-icon .page-count {
        font-size: 32px;
    }
    
    /* Reduce margins */
    .form-group {
        margin-bottom: 15px;
    }
}

/* Very Small Phone (320px) */
@media (max-width: 320px) {
    /* Minimum viable layout */
    .form-content {
        padding: 10px;
    }
    
    .section-header {
        padding: 10px;
    }
    
    .section-header h2 {
        font-size: 14px;
        letter-spacing: 0;
    }
    
    /* Single column everything */
    .material-grid {
        grid-template-columns: 1fr;
    }
    
    /* Minimum font sizes */
    body {
        font-size: 13px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    /* Compact buttons */
    .btn {
        padding: 12px 15px;
        font-size: 11px;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    input[type="radio"],
    input[type="checkbox"],
    select {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .package-card:hover,
    .art-style-card:hover {
        transform: none;
    }
    
    /* Better spacing for touch */
    .form-group {
        margin-bottom: 25px;
    }
    
    /* Larger file upload areas */
    .file-upload-area,
    .photo-upload-slot {
        min-height: 150px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .form-container {
        margin-top: 10px;
    }
    
    .section-header {
        padding: 15px;
    }
    
    .form-content {
        padding: 15px;
    }
    
    /* Reduce vertical spacing in landscape */
    .form-group {
        margin-bottom: 15px;
    }
}

/* Print Styles */
@media print {
    .form-navigation,
    .progress-container,
    .btn-draft {
        display: none;
    }
    
    .form-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .form-section {
        display: block !important;
        page-break-inside: avoid;
    }
}
