/**
 * Submission Form Page Styles
 * Extracted from components/submission-form.html
 * Phase 2A - CSS Refactor
 */

/* ===== BASE RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Poppins', -apple-system, sans-serif;
    background: linear-gradient(135deg, #FFEEE6 0%, #FFE0D2 50%, #FFE8D6 100%);
    color: #3D2E26;
    min-height: 100vh;
    overflow-y: auto;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 35px;
}

/* ===== NAVIGATION ===== */
.back-link {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E8704E;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    font-weight: 700;
    background: #FFEEE6;
    padding: 10px 20px;
    border-radius: 12px;
    width: fit-content;
    border: 2px solid #FFE0D2;
}

.back-link:hover {
    background: #E8704E;
    color: white;
    border-color: #E8704E;
}

/* ===== FORM HEADER ===== */
.form-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
}

.form-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.form-header .logo img {
    height: 50px;
    width: auto;
}

.form-header .logo-text {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #358585, #2A6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header h1 {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #E8704E, #CC5836);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1.25rem;
    color: #6B5E57;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== FORM CONTENT ===== */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: white;
    border: 3px solid #FFE0D2;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
    color: #E8704E;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #3D2E26;
    font-weight: 600;
    font-size: 1.05rem;
}

.required {
    color: #CC5836;
}

.form-input {
    width: 100%;
    background: #FFEEE6;
    border: 2px solid #FFE0D2;
    border-radius: 15px;
    padding: 14px 18px;
    color: #3D2E26;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #E8704E;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    color: #9B8E87;
    font-size: 0.875rem;
    margin-top: 6px;
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload {
    border: 3px dashed #FFE8D6;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
}

.photo-upload:hover {
    border-color: #E8704E;
    background: white;
    transform: scale(1.02);
}

.photo-upload.has-file {
    border-color: #358585;
    background: #FFEEE6;
    padding: 20px;
}

.photo-preview-small {
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== PHOTO EDITOR MODAL ===== */
.photo-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 24, 16, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-editor-overlay.active {
    display: flex;
}

.photo-editor-modal {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    border: 4px solid #E8704E;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.photo-editor-header {
    padding: 14px 20px;
    border-bottom: 2px solid #FFE0D2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
}

.photo-editor-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #E8704E;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-editor-close {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #FFE0D2;
    border-radius: 50%;
    color: #E8704E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo-editor-close:hover {
    background: #E8704E;
    color: white;
    border-color: #E8704E;
}

.photo-editor-body {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.editor-instructions {
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border: 2px solid #358585;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #2A6B6B;
    font-weight: 600;
}

.editor-instructions strong {
    color: #3D2E26;
}

/* ===== CROP AREA ===== */
.crop-container {
    position: relative;
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.crop-area {
    position: relative;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.crop-area:active {
    cursor: grabbing;
}

.crop-image {
    position: absolute;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
}

.crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
}

.crop-grid-line {
    position: absolute;
    background: white;
}

.crop-grid-line.horizontal {
    left: 0;
    right: 0;
    height: 1px;
}

.crop-grid-line.vertical {
    top: 0;
    bottom: 0;
    width: 1px;
}

.aspect-ratio-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(232, 112, 78, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* ===== ZOOM CONTROLS ===== */
.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 14px;
    background: #FFEEE6;
    border-radius: 12px;
}

.zoom-btn {
    width: 34px;
    height: 34px;
    background: white;
    border: 2px solid #FFE0D2;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #E8704E;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-btn:hover {
    background: #E8704E;
    color: white;
    border-color: #E8704E;
}

.zoom-slider-container {
    flex: 1;
    max-width: 200px;
}

.zoom-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #FFE0D2;
    border-radius: 3px;
    outline: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #E8704E;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.zoom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #E8704E;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.zoom-display {
    background: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    color: #E8704E;
    min-width: 50px;
    font-size: 0.85rem;
    text-align: center;
    border: 2px solid #FFE0D2;
    font-family: inherit;
    cursor: text;
}

.zoom-display:focus {
    outline: none;
    border-color: #E8704E;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* ===== FIT & ROTATE BUTTONS ===== */
.fit-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rotate-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.remove-photo-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #e74c3c;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.remove-photo-btn:hover {
    background: #e74c3c;
    color: white;
}

.fit-btn {
    background: white;
    border: 2px solid #FFE0D2;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    color: #6B5E57;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.fit-btn:hover,
.fit-btn.active {
    background: #358585;
    color: white;
    border-color: #358585;
}

.rotate-btn {
    background: white;
    border: 2px solid #FFE8D6;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    color: #E8704E;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rotate-btn:hover {
    background: #E8704E;
    color: white;
    border-color: #E8704E;
}

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

/* ===== EDITOR ACTIONS ===== */
.editor-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.editor-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-btn-cancel {
    background: white;
    border: 2px solid #FFE0D2;
    color: #6B5E57;
}

.editor-btn-cancel:hover {
    background: #FFEEE6;
    border-color: #E8704E;
    color: #E8704E;
}

.editor-btn-apply {
    background: linear-gradient(135deg, #E8704E, #CC5836);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.editor-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* ===== SUBMISSION TYPE CARDS ===== */
.submission-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== OCCASION CARDS - Desktop ===== */
.occasion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.occasion-card {
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border: 3px solid #FFE8D6;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.occasion-card:hover {
    border-color: #E8704E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.occasion-card.selected {
    border-color: #358585;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    box-shadow: 0 8px 25px rgba(53, 133, 133, 0.15);
}

.occasion-card .icon {
    color: #E8704E;
    margin-bottom: 10px;
}

.occasion-card.selected .icon {
    color: #358585;
}

.occasion-card .title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #3D2E26;
    font-family: 'Poppins', sans-serif;
}

.occasion-card .description {
    font-size: 0.8rem;
    color: #6B5E57;
}

/* ===== OCCASION DROPDOWN - Mobile ===== */
.occasion-dropdown-wrapper {
    display: none;
}

.occasion-dropdown {
    width: 100%;
    background: #FFEEE6;
    border: 3px solid #FFE0D2;
    border-radius: 15px;
    padding: 16px 18px;
    color: #3D2E26;
    font-size: 1.05rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4836B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

.occasion-dropdown:focus {
    outline: none;
    border-color: #E8704E;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.occasion-dropdown option {
    padding: 12px;
    font-weight: 600;
}

.occasion-description {
    margin-top: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border-radius: 10px;
    color: #2A6B6B;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ===== MEMORIAL CHECKBOX ===== */
.memorial-checkbox-wrapper {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.memorial-checkbox-wrapper.hidden {
    display: none;
}

.memorial-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #3D2E26;
}

.memorial-checkbox {
    display: none;
}

.memorial-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 3px solid #bae6fd;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.memorial-checkbox:checked + .memorial-checkbox-custom {
    background: #358585;
    border-color: #358585;
}

.memorial-checkbox:checked + .memorial-checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.memorial-checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== TYPE CARD ===== */
.type-card {
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border: 3px solid #FFE8D6;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.type-card:hover {
    border-color: #E8704E;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.type-card.selected {
    border-color: #358585;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    box-shadow: 0 10px 30px rgba(53, 133, 133, 0.15);
}

.type-card .icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.type-card .title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #3D2E26;
    font-family: 'Poppins', sans-serif;
}

.type-card .description {
    font-size: 0.95rem;
    color: #6B5E57;
}

/* ===== ERROR STATES ===== */
.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 8px;
    font-weight: 700;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #dc2626;
}

.error-message:empty {
    display: none;
}

.form-input.input-error {
    border-color: #CC5836 !important;
    background: #fff5f5 !important;
    animation: shake 0.4s ease-in-out;
}

.photo-upload.input-error {
    border-color: #CC5836 !important;
    background: #fff5f5 !important;
    animation: shake 0.4s ease-in-out;
}

.form-input.input-valid {
    border-color: #358585 !important;
    background: white !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== PRICING SIDEBAR ===== */
.pricing-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.pricing-card {
    background: white;
    border: 4px solid #E8704E;
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card h3 {
    color: #E8704E;
    margin-bottom: 25px;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.area-info {
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.area-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
}

.area-info-row:last-child {
    margin-bottom: 0;
}

.area-info-label {
    color: #6B5E57;
    font-weight: 600;
}

.area-info-value {
    color: #3D2E26;
    font-weight: 700;
}

/* ===== ZONE BADGES ===== */
.zone-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.zone-badge.standard {
    background: #d1d5db;
    color: #1f2937;
}

.zone-badge.premium {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: white;
}

.zone-badge.center {
    background: linear-gradient(135deg, #CC5836, #E8704E);
    color: white;
}

/* ===== PRICING BREAKDOWN ===== */
.pricing-breakdown {
    margin: 25px 0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #FFE0D2;
    font-size: 1.05rem;
}

.pricing-row:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 3px solid #E8704E;
    font-size: 2rem;
    font-weight: 800;
    color: #358585;
}

.pricing-row .label {
    color: #6B5E57;
    font-weight: 600;
}

.pricing-row .value {
    color: #3D2E26;
    font-weight: 700;
}

.discount-badge {
    background: #358585;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 10px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
}

/* Mobile: Stack discount badge below price */
@media (max-width: 480px) {
    .pricing-row .value {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .discount-badge {
        margin-left: 0;
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 10px;
    font-weight: 700;
}

/* ===== CHARITY NOTICE ===== */
.charity-notice {
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border: 3px solid #358585;
    border-radius: 20px;
    padding: 20px;
    margin: 25px 0;
    font-size: 0.95rem;
}

.charity-notice strong {
    color: #2A6B6B;
    font-weight: 700;
}

/* ===== TERMS & PRIVACY CHECKBOX ===== */
.terms-agreement {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    border: 2px solid #FFE8D6;
    border-radius: 15px;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #3D2E26;
    line-height: 1.5;
}

.terms-checkbox {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #E8704E;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-checkbox-text a {
    color: #E8704E;
    text-decoration: none;
    font-weight: 700;
}

.terms-checkbox-text a:hover {
    text-decoration: underline;
}

.terms-error {
    color: #CC5836;
    font-size: 0.875rem;
    margin-top: 8px;
    font-weight: 600;
    display: none;
}

.terms-agreement.error {
    border-color: #CC5836;
    background: #fff5f5;
}

.terms-agreement.error .terms-error {
    display: block;
}

/* ===== PAYMENT BUTTON ===== */
.payment-btn {
    width: 100%;
    background: linear-gradient(135deg, #E8704E, #E8704E);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 25px;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.payment-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #CC5836, #E8704E);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

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

/* ===== PRICING INFO ===== */
.pricing-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #FFE0D2;
    font-size: 0.9rem;
    color: #6B5E57;
}

.pricing-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ===== LOADING STATE ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ANIMATIONS ===== */
@keyframes bounceIn {
    0% { transform: scale(0) translateY(-50px); opacity: 0; }
    50% { transform: scale(1.2) translateY(0); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

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

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .pricing-sidebar {
        position: static;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .submission-type-cards {
        grid-template-columns: 1fr;
    }
    
    .form-header h1 {
        font-size: 2.25rem;
    }
    
    /* Photo Editor Mobile Improvements */
    .photo-editor-overlay {
        padding: 0;
        align-items: stretch;
        overflow: hidden;
        background: white;
    }
    
    .photo-editor-modal {
        max-width: 100%;
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .photo-editor-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }
    
    .photo-editor-title {
        font-size: 1.1rem;
    }
    
    .photo-editor-body {
        padding: 12px 15px 8px;
        overflow: visible;
    }
    
    .crop-container {
        flex: 0 0 auto;
        margin-bottom: 10px;
        min-height: 0;
    }
    
    .crop-area {
        max-height: 50vh;
    }
    
    .zoom-controls {
        padding: 8px;
        gap: 6px;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .zoom-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .zoom-slider-container {
        flex: 1;
        min-width: 60px;
        max-width: 100px;
    }
    
    .zoom-slider {
        height: 10px;
    }
    
    .zoom-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .zoom-display {
        padding: 6px 8px;
        min-width: 50px;
        width: 55px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .fit-buttons {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .fit-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .rotate-buttons {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .rotate-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .editor-actions {
        flex-direction: row;
        gap: 10px;
        padding: 6px 0 0;
        margin: 0;
    }
    
    .editor-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 0.82rem;
    }
}

/* ===== MISSING FIELDS HINT ===== */
.missing-fields-hint {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #92400e;
    text-align: center;
}

.missing-fields-hint strong {
    color: #78350f;
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 600px) {
    .occasion-cards {
        display: none;
    }
    
    .occasion-dropdown-wrapper {
        display: block;
    }
}
