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

/* Animations for error messages and UI elements */
@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
}

/* AI Disclaimer Styling */
.ai-disclaimer {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 25px auto 0;
    max-width: 800px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.disclaimer-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-content strong {
    color: #856404;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.disclaimer-content p {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-content em {
    font-style: italic;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Sample Gallery Styles */
.samples-gallery {
    text-align: center;
    margin: 20px 0 30px 0;
    padding: 0;
}

.gallery-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 15px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 180px;
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .samples-gallery {
        margin: 15px -20px 25px -20px;
        padding: 0 20px;
    }
    
    .gallery-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .gallery-scroll {
        gap: 10px;
        padding: 8px 0 12px 0;
        /* Hide scrollbar on mobile for cleaner look */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .gallery-scroll::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .gallery-item {
        width: 140px;
    }
    
    .gallery-item img {
        height: 190px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .samples-gallery {
        margin: 10px -20px 20px -20px;
        padding: 0 20px;
    }
    
    .gallery-subtitle {
        font-size: 0.85rem;
    }
    
    .gallery-scroll {
        gap: 8px;
    }
    
    .gallery-item {
        width: 130px;
    }
    
    .gallery-item img {
        height: 175px;
    }
}

/* Pricing UI Styles */
.count-chip {
    position: relative;
    border: 3px solid #e0e0e0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.count-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.count-chip.selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.count-price {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #667eea !important;
    margin: 10px 0 5px 0 !important;
    line-height: 1 !important;
}

.count-per {
    font-size: 0.85rem !important;
    color: #888 !important;
    margin: 0 !important;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4);
}

.popular-badge:last-child {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.4);
    color: #333;
}

.payment-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.total-price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.total-price-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    color: white;
}

.total-price-box p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

#totalPrice {
    font-size: 2.5rem;
    font-weight: 800;
}

.mode-selection {
    margin-bottom: 50px;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mode-card {
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mode-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.mode-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mode-card.active h3,
.mode-card.active p {
    color: white;
}

.mode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.mode-card p {
    color: #666;
    font-size: 0.95rem;
}

.mode-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

.recommended, .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge {
    background: #ff9800;
}

.upload-section {
    margin-top: 40px;
}

.instruction {
    color: #666;
    margin-bottom: 20px;
}

.email-input {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
    position: relative;
    margin-bottom: 20px;
}

.upload-area.small {
    padding: 30px 20px;
}

.upload-area:hover {
    border-color: #764ba2;
    background: #f0f2ff;
}

.upload-area.dragover {
    border-color: #764ba2;
    background: #e8ebff;
    transform: scale(1.02);
}

.upload-area.has-files {
    border-color: #4caf50;
    background: #f1f8f4;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.upload-subtext {
    color: #999;
}

/* Upload Guide Section - Wedding Theme */
.upload-guide {
    background: linear-gradient(135deg, #fff8f0 0%, #fffff0 100%);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(183, 110, 121, 0.12),
        0 10px 30px rgba(212, 175, 55, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.guide-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.guide-title {
    font-size: 1.8rem;
    color: #b76e79;
    margin-bottom: 15px;
    font-weight: 700;
}

.guide-intro {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 25px;
}

.guide-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 25px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(248, 201, 212, 0.15);
    transition: all 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 110, 121, 0.2);
}

.guide-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.guide-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.guide-tip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fadadd 0%, #f8c9d4 100%);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 
        0 3px 10px rgba(248, 201, 212, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 1.5rem;
}

.tip-text {
    font-size: 0.9rem;
    color: #333;
}

/* Responsive for Upload Guide */
@media (max-width: 768px) {
    .upload-guide {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .guide-icon {
        font-size: 2.5rem;
    }
    
    .guide-title {
        font-size: 1.4rem;
    }
    
    .guide-intro {
        font-size: 0.95rem;
    }
    
    .guide-item {
        padding: 15px;
        gap: 12px;
    }
    
    .guide-emoji {
        font-size: 1.5rem;
    }
    
    .guide-text {
        font-size: 0.9rem;
    }
    
    .guide-tip {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .tip-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .upload-guide {
        padding: 20px 15px;
    }
    
    .guide-title {
        font-size: 1.2rem;
    }
    
    .guide-item {
        padding: 12px;
        gap: 10px;
    }
}

/* Mobile Responsive: Buttons and Forms */
@media (max-width: 768px) {
    .btn-primary {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 18px 35px;
        font-size: 1.05rem;
    }
    
    .payment-section {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .total-price-box {
        padding: 20px;
        margin-bottom: 18px;
    }
    
    .total-price-box h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .payment-section {
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .total-price-box {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .total-price-box h3 {
        font-size: 1.3rem;
    }
    
    .total-price-box p {
        font-size: 0.85rem;
    }
}

input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.preview-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    font-size: 1.2rem;
    padding: 20px 50px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #999;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

footer .footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

footer .footer-links a:hover {
    background: #f0f9ff;
    border-color: #667eea;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    footer .footer-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    footer .footer-links a {
        display: block;
        width: 200px;
        text-align: center;
    }
}

.training-notice {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.training-notice ul {
    list-style-position: inside;
    color: #1565c0;
}

.training-notice li {
    margin: 8px 0;
}

.training-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.training-column {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
}

.training-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin: 15px 0;
    min-height: 100px;
}

.training-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.count-text {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    margin-top: 10px;
}

.training-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.training-progress {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    width: 0%;
}

.option-section {
    margin-bottom: 40px;
}

.option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.chip {
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.chip:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Mobile Responsive: Option Chips */
@media (max-width: 768px) {
    .option-section {
        margin-bottom: 30px;
    }
    
    .option-section h2 {
        font-size: 1.3rem;
    }
    
    .option-chips {
        gap: 12px;
    }
    
    .chip {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .chip-card {
        padding: 18px;
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .option-section {
        margin-bottom: 25px;
    }
    
    .option-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .option-chips {
        gap: 10px;
    }
    
    .chip {
        padding: 9px 18px;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 5px);
        min-width: 100px;
        text-align: center;
    }
    
    .chip-card {
        padding: 15px;
        min-width: 100%;
    }
}

/* Time Warning Box Styling */
.time-warning-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 3px solid #2196F3;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.time-warning-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.time-warning-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.time-warning-title {
    margin: 0;
    color: #1565C0;
    font-size: 1.5rem;
    font-weight: 800;
}

.time-warning-subtitle {
    margin: 5px 0 0 0;
    color: #1976D2;
    font-size: 1.1rem;
    font-weight: 600;
}

.time-warning-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #2196F3;
}

.time-warning-text {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsive: Time Warning Box */
@media (max-width: 768px) {
    .time-warning-box {
        padding: 20px;
        margin: 25px 0;
        border-radius: 12px;
    }
    
    .time-warning-header {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .time-warning-icon {
        font-size: 40px;
    }
    
    .time-warning-title {
        font-size: 1.3rem;
    }
    
    .time-warning-subtitle {
        font-size: 1rem;
    }
    
    .time-warning-content {
        padding: 18px;
    }
    
    .time-warning-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .time-warning-box {
        padding: 18px 15px;
        margin: 20px 0;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .time-warning-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .time-warning-icon {
        font-size: 36px;
    }
    
    .time-warning-title {
        font-size: 1.2rem;
    }
    
    .time-warning-subtitle {
        font-size: 0.95rem;
    }
    
    .time-warning-content {
        padding: 15px;
    }
    
    .time-warning-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
}

.chip.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.chip.small {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.chip-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    min-width: 250px;
}

.chip-card:hover {
    border-color: #667eea;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.2);
}

.scene-list {
    list-style: none;
    margin-top: 10px;
}

.scene-item {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.scene-item:hover {
    background: #e8ebff;
}

.scene-item.selected {
    background: #667eea;
    color: white;
}

.selection-summary {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.selection-summary p {
    margin: 8px 0;
}

.preview-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: #856404;
}

/* Success page - Large impressive gallery */
.final-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 30px auto;
    max-width: 1600px; /* Large max-width for impressive display */
    padding: 0 20px;
}

.final-gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9ff;
    min-height: 500px; /* Ensure images are large and impressive */
}

.final-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.final-gallery-item img {
    width: 100%;
    min-height: 500px; /* Large minimum height for better visibility */
    max-height: 800px; /* Maximum height to prevent overly large images */
    object-fit: contain; /* Show full image without cropping */
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.final-gallery-item img:hover {
    opacity: 0.95;
}

/* Homepage samples - Small scrollable gallery */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9ff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-item img:hover {
    opacity: 0.95;
}

.download-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.final-gallery-item:hover .download-btn {
    opacity: 1;
}

.download-btn:hover {
    background: rgba(118, 75, 162, 1);
    transform: translateX(-50%) scale(1.05);
}

.download-btn:active {
    transform: translateX(-50%) scale(0.98);
}

.actions-center {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.email-delivery-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.email-delivery-section h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.email-delivery-section > p {
    color: #666;
    margin-bottom: 20px;
}

.email-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.email-status {
    margin-top: 15px;
    font-weight: 600;
    font-size: 1rem;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.email-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin: 20px 0;
}

.info-box {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    padding: 10px 0;
    color: #666;
}

.final-gallery {
    margin: 40px 0;
}

.job-progress {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
    }
    
    .training-columns {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .final-gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .final-gallery-item {
        min-height: 400px;
    }
    
    .final-gallery-item img {
        min-height: 400px;
    }
    
    .download-btn {
        opacity: 1;
        position: static;
        transform: none;
        display: block;
        width: calc(100% - 30px);
        margin: 10px 15px 15px 15px;
    }
    
    .download-btn:hover {
        transform: none;
    }
    
    .actions-center {
        flex-direction: column;
    }
    
    .btn-secondary, .btn-primary {
        width: 100%;
    }
}
