/* order-shared.css — Clean professional styles for all photography order forms */

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

:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #1a1a1a;
    --accent-warm: #92764a;
    --accent-warm-light: #f5f0e8;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #b45309;
    --warning-light: #fffbeb;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Hide old animated background — no longer needed */
.bg-animation {
    display: none;
}

/* Main container */
.container {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Header */
.header {
    text-align: center;
    padding: 4rem 2rem 2.5rem;
    margin-bottom: 1.5rem;
}

.logo-badge {
    display: inline-block;
    background: var(--accent-warm);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Form Card */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.section-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-warm);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

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

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

label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(146, 118, 74, 0.1);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select option {
    background-color: white;
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-sm);
}

.package-card.has-quantity {
    border-color: var(--accent-warm);
    background: var(--accent-warm-light);
    box-shadow: 0 0 0 1px var(--accent-warm);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.package-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-warm);
    line-height: 1;
}

.package-items {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.package-items li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.package-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 0.8rem;
}

.package-category {
    color: var(--accent-warm);
    font-weight: 600;
    margin-right: 0.5rem;
}

.package-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    margin-top: auto;
}

/* Individual Items */
.items-section {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.items-grid {
    display: grid;
    gap: 0.625rem;
}

.item-option {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.item-option:hover {
    border-color: #d1d5db;
}

.item-option.has-quantity {
    border-color: var(--accent-warm);
    background: var(--accent-warm-light);
}

.item-info {
    flex-grow: 1;
}

.item-name {
    font-weight: 500;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.item-price {
    font-weight: 700;
    color: var(--accent-warm);
    font-size: 0.9rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--surface);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--accent-warm);
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.qty-input {
    width: 48px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.4rem;
    font-family: 'Inter', sans-serif;
}

.qty-input:focus {
    outline: none;
}

/* Order Summary */
.order-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-row.total .amount {
    color: var(--accent-warm);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--accent-warm);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    background: #7d6540;
    box-shadow: 0 4px 16px rgba(146, 118, 74, 0.25);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

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

/* Info Note */
.info-note {
    background: var(--warning-light);
    border-left: 3px solid var(--warning);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-note strong {
    color: var(--warning);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.7s linear infinite;
}

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

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--success);
}

.modal h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-btn {
    padding: 0.85rem 1.75rem;
    background: var(--accent-warm);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: #7d6540;
    box-shadow: 0 4px 12px rgba(146, 118, 74, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 1.75rem 1.25rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header {
        padding: 3rem 1rem 2rem;
    }

    .item-option {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .item-option .quantity-control {
        align-self: flex-end;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
