/* KYO Lucky Draw - Enhanced Styling */

:root {
    --kyo-primary: #223f99;
    --kyo-primary-dark: #1a3077;
    --kyo-primary-light: #3a5bb8;
    --kyo-secondary: #ffffff;
    --kyo-accent: #4a90e2;
    --kyo-success: #27ae60;
    --kyo-dark: #1a1a1a;
    --kyo-light: #f8f9fa;
    --kyo-gradient: linear-gradient(135deg, #223f99 0%, #3a5bb8 100%);
    --kyo-gradient-reverse: linear-gradient(135deg, #3a5bb8 0%, #223f99 100%);
    --shadow-sm: 0 2px 8px rgba(34, 63, 153, 0.1);
    --shadow-md: 0 4px 12px rgba(34, 63, 153, 0.15);
    --shadow-lg: 0 10px 30px rgba(34, 63, 153, 0.2);
    --shadow-xl: 0 20px 40px rgba(34, 63, 153, 0.25);
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Styling */
.kyo-header {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--kyo-gradient);
    color: white;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.kyo-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.kyo-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.campaign-desc {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Partner Logos */
.partner-logos {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.partner-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Prize Showcase */
.prize-showcase {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(34, 63, 153, 0.1);
}

.prize-showcase h2 {
    text-align: center;
    color: var(--kyo-primary);
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.prize-showcase h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--kyo-gradient);
    border-radius: 2px;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.prize-card {
    background: white;
    border: 2px solid var(--kyo-primary);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--kyo-gradient);
}

.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--kyo-primary-light);
}

.prize-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.prize-placeholder {
    font-size: 4rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.prize-card h3 {
    font-size: 1.2rem;
    color: var(--kyo-primary);
    margin-bottom: 0.5rem;
}

.prize-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Branches Section */
.branches-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.branches-section h2 {
    text-align: center;
    color: var(--kyo-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.branches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.branch-tag {
    background: var(--kyo-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.branch-tag:hover {
    transform: scale(1.05);
}

/* Form Styling */
.participation-form {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid rgba(34, 63, 153, 0.1);
}

.participation-form h2 {
    text-align: center;
    color: var(--kyo-primary);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.participation-form h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--kyo-gradient);
    border-radius: 2px;
}

.form-section {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid rgba(34, 63, 153, 0.1);
}

.form-section h2 {
    text-align: center;
    color: var(--kyo-primary);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--kyo-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-control:focus {
    outline: none;
    border-color: var(--kyo-primary);
    box-shadow: 0 0 0 4px rgba(34, 63, 153, 0.1);
    background: white;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-link {
    color: var(--kyo-secondary);
    text-decoration: underline;
    font-weight: 600;
}

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

/* Receipt Upload Styling */
.receipt-upload-group {
    margin-bottom: 1.5rem;
}

.receipt-upload-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--kyo-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.receipt-upload-group label svg {
    width: 20px;
    height: 20px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--kyo-primary);
    background: rgba(34, 63, 153, 0.02);
}

.file-upload-wrapper.dragover {
    border-color: var(--kyo-primary);
    background: rgba(34, 63, 153, 0.05);
    transform: scale(1.01);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.file-upload-label svg {
    width: 48px;
    height: 48px;
    color: var(--kyo-primary);
    opacity: 0.6;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--kyo-primary);
    font-weight: 500;
}

.file-upload-hint {
    font-size: 0.85rem;
    color: #888;
}

.receipt-preview {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.receipt-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.receipt-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receipt-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.receipt-preview-item .remove-btn:hover {
    background: #c0392b;
}

.file-selected-name {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 63, 153, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--kyo-primary);
    font-size: 0.9rem;
}

.file-selected-name svg {
    width: 18px;
    height: 18px;
    color: var(--kyo-success);
}

/* Buttons */
.btn-primary,
.btn-spin,
.btn-spin-now {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--kyo-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-spin::before,
.btn-spin-now::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-primary:not(:disabled):hover,
.btn-spin:not(:disabled):hover,
.btn-spin-now:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--kyo-gradient-reverse);
}

.btn-primary:not(:disabled):hover::before,
.btn-spin:not(:disabled):hover::before,
.btn-spin-now:not(:disabled):hover::before {
    left: 100%;
}

.btn-primary:disabled,
.btn-spin:disabled,
.btn-spin-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #95a5a6;
}

.btn-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-loading .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 24px;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(34, 63, 153, 0.3);
    animation: slideUp 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(34, 63, 153, 0.1);
}

.modal-content h2 {
    color: var(--kyo-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

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

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--kyo-secondary);
}

/* Terms Modal */
.modal-terms {
    max-width: 700px;
}

.terms-content {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.terms-content h3 {
    color: var(--kyo-primary);
    margin-bottom: 1rem;
}

.terms-content p {
    margin-bottom: 0.75rem;
    color: #333;
}

/* Win Modal */
.modal-win {
    text-align: center;
}

.win-header {
    margin-bottom: 2rem;
}

.win-header h2 {
    color: var(--kyo-success);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.prize-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.modal-prize-image {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.modal-prize-name {
    font-size: 1.8rem;
    color: var(--kyo-primary);
    font-weight: 700;
}

.upload-section {
    text-align: left;
}

.upload-section h4 {
    color: var(--kyo-primary);
    margin-bottom: 0.5rem;
}

.upload-instruction {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.image-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.btn-submit-proof {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--kyo-success);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit-proof:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* No Prize Modal */
.modal-no-prize {
    text-align: center;
}

.no-prize-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.modal-no-prize h2 {
    color: var(--kyo-primary);
    margin-bottom: 1rem;
}

.no-prize-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.redirect-message {
    font-size: 0.95rem;
    color: #999;
}

#countdown {
    font-weight: 700;
    color: var(--kyo-secondary);
}

/* Success Modal */
.modal-success {
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.modal-success h2 {
    color: var(--kyo-success);
    margin-bottom: 1rem;
}

.modal-success p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kyo-header h1 {
        font-size: 1.8rem;
    }

    .campaign-desc {
        font-size: 1rem;
    }

    .partner-logo {
        height: 50px;
    }

    .prizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .prize-image,
    .prize-placeholder {
        height: 120px;
    }

    .form-section {
        padding: 1.5rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .win-header h2 {
        font-size: 2rem;
    }

    .modal-prize-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    /* Form Styling */
    .participation-form {
        background: white;
        padding: 0rem 0rem;
        border-radius: 20px;
        box-shadow: var(--shadow-xl);
        max-width: 650px;
        margin: 0 auto;
        border: 1px solid rgba(34, 63, 153, 0.1);
    }

    /* Make select dropdown bigger on mobile */
    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-control {
        font-size: 18px;
        padding: 1rem 1.25rem;
        min-height: 56px;
    }

    .form-group select option {
        font-size: 18px;
        padding: 12px;
    }

    .kyo-header {
        padding: 1.5rem 1rem;
    }

    .kyo-header h1 {
        font-size: 1.5rem;
    }

    .logos-container {
        gap: 1rem;
    }

    .partner-logo {
        height: 40px;
    }

    .prize-showcase,
    .branches-section {
        padding: 1.5rem;
    }

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

    .branch-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--kyo-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Alert Messages */
.alert {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-warning {
    background: #fff8e1;
    border: 2px solid #ffc107;
    color: #f57c00;
    border-left: 5px solid #ffc107;
}

.alert-success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    color: #2e7d32;
    border-left: 5px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    border: 2px solid #f44336;
    color: #c62828;
    border-left: 5px solid #f44336;
}

/* Spin Page */
.spin-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--kyo-gradient);
    position: relative;
    overflow: hidden;
}

.spin-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.spin-header {
    text-align: center;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

.spin-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.spin-header p {
    font-size: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Wheel Section */
.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wheel-image {
    width: 400px;
    height: 400px;
    max-width: 90vw;
    max-height: 90vw;
    object-fit: contain;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.spin-button {
    padding: 1.75rem 4rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: white;
    color: var(--kyo-primary);
    border: 4px solid white;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse-button 2s infinite;
    position: relative;
    overflow: hidden;
}

.spin-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--kyo-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spin-button:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    color: white;
}

.spin-button:hover:not(:disabled)::before {
    width: 300%;
    height: 300%;
}

.spin-button span {
    position: relative;
    z-index: 1;
}

.spin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

@keyframes pulse-button {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Modal Display Fix */
.modal {
    display: none;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: flex"] {
    display: flex !important;
}

/* Responsive Wheel */
@media (max-width: 768px) {
    .wheel-image {
        width: 300px;
        height: 300px;
    }

    .spin-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .wheel-image {
        width: 250px;
        height: 250px;
    }

    .spin-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Winner Prize Display in Upload Modal */
.upload-modal-content {
    text-align: center;
}

.winner-prize-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(34, 63, 153, 0.1);
}

.winner-prize-image {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.winner-prize-name {
    font-size: 1.5rem;
    color: var(--kyo-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.winner-prize-desc {
    color: #666;
    font-size: 0.95rem;
}

.upload-instruction {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.upload-field {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.upload-field label {
    font-weight: 600;
    color: var(--kyo-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-field .required {
    color: #e74c3c;
}

.upload-field input[type="file"] {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-field input[type="file"]:hover {
    border-color: var(--kyo-primary);
}

.upload-hint {
    display: block;
    margin-top: 0.5rem;
    color: #888;
    font-size: 0.85rem;
}

/* Upload Options - Camera and Browse buttons */
.upload-options {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.upload-or {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-camera,
.btn-browse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    max-width: 180px;
    min-height: 48px;
    box-sizing: border-box;
    line-height: 1;
    text-decoration: none;
    margin: 0;
}

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

.btn-camera:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-browse {
    background: white;
    color: var(--kyo-primary);
    border: 2px solid var(--kyo-primary);
    min-height: 48px;
}

.btn-browse:hover {
    background: var(--kyo-primary);
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive for upload buttons */
@media (max-width: 480px) {
    .upload-options {
        gap: 0.5rem;
    }
    
    .btn-camera,
    .btn-browse {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        max-width: 140px;
        height: 44px;
    }
    
    .btn-camera svg,
    .btn-browse svg {
        width: 16px;
        height: 16px;
    }
    
    .upload-or {
        font-size: 0.8rem;
    }
}

/* Image Preview Container */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.remove-image-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    line-height: 1;
    padding: 0;
}

.remove-image-btn:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.image-count {
    width: 100%;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Thank You Modal */
.thank-you-content {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease;
}

.thank-you-content h2 {
    color: var(--kyo-success);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-message {
    color: var(--kyo-primary);
    font-weight: 600;
    margin-bottom: 2rem !important;
}

/* Button loading state */
.btn-submit-proof {
    position: relative;
}

.btn-submit-proof:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Coupon Section Styles */
.coupon-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px dashed var(--kyo-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.coupon-code-box {
    background: white;
    border: 3px solid var(--kyo-primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    display: inline-block;
}

.coupon-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.coupon-code {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--kyo-primary);
    letter-spacing: 3px;
    font-family: monospace;
}

.coupon-description {
    color: #555;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.screenshot-reminder {
    color: #e74c3c;
    font-size: 1rem;
    margin-top: 1rem;
    animation: pulse 1.5s infinite;
}

.countdown-text {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
}

#countdown {
    font-weight: 700;
    color: var(--kyo-primary);
    font-size: 1.1rem;
}

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