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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* Decorative background elements */
body::before {
    content: '';
    position: relative;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

body::after {
    content: '';
    position: relative;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(60px);
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease-in;
    position: relative;
    z-index: 1;
}

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

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

.header h1 {
    font-size: 2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
    animation: slideIn 0.5s ease-in;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

label::after {
    content: ' *';
    color: #e74c3c;
}

label:not([for="size_0"]):not([for="quantity_0"]):not([for="numbers_0"]):not([for="name_0"]):not([for="comments_0"])::after {
    content: ' *';
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #333;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Custom styling for number input */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
    height: 30px;
    cursor: pointer;
}

input[type="number"]::-webkit-outer-spin-button:hover,
input[type="number"]::-webkit-inner-spin-button:hover {
    background-color: #667eea;
    color: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="file"] {
    padding: 12px;
    border: 2px dashed #d0d5dd;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

input[type="file"]:hover {
    border-color: #667eea;
    background-color: #f5f7ff;
}

.repeatable-container {
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.repeatable-container:hover {
    border-color: #667eea;
}

.repeatable-item {
    background-color: #f9fafb;
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    animation: slideIn 0.4s ease-in;
}

.repeatable-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.order-title {
    font-weight: 600;
    font-size: 16px;
    color: #667eea;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-secondary:hover {
    background: #f5f7ff;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.button-group {
    margin-top: 20px;
}

.size-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #10b981;
    animation: slideIn 0.5s ease-in;
    display: none;
    font-size: 14px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #ef4444;
    animation: slideIn 0.5s ease-in;
    font-size: 14px;
}

.file-info {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    font-style: italic;
}

[id^="product_images_preview"],
[id^="sponsor_images_preview"] {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-preview-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
}

.file-preview-item img:hover {
    transform: scale(1.05);
}

.file-preview-item .file-icon {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.file-preview-item .file-icon-text {
    font-size: 40px;
    font-weight: bold;
    color: #667eea;
}

.file-preview-item .file-name {
    margin-top: 8px;
    word-break: break-word;
    max-width: 150px;
    font-size: 11px;
    color: #666;
    text-align: center;
}

input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

input[type="radio"]:checked {
    accent-color: #667eea;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 10px;
}

.form-step {
    animation: fadeIn 0.5s ease-in;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
    animation: slideDown 0.4s ease-out;
}

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

.modal-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 12px;
}

#infoModal .modal-title {
    color: #3b82f6;
}

.modal-message {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-button:hover {
    background: #5568d3;
}

.modal-button-danger {
    background: #ef4444;
}

.modal-button-danger:hover {
    background: #dc2626;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode::before {
    background: rgba(102, 126, 234, 0.05);
}

body.dark-mode::after {
    background: rgba(118, 75, 162, 0.05);
}

body.dark-mode .container {
    background-color: #1e1e2e;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

body.dark-mode h1 {
    color: #ffffff !important;
}

body.dark-mode label {
    color: #d1d5db;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="number"],
body.dark-mode textarea,
body.dark-mode select {
    background-color: #2d2d3f;
    border-color: #404055;
    color: #e5e7eb;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode input[type="number"]:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background-color: #2d2d3f;
    border-color: #667eea;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #6b7280;
}

body.dark-mode .repeatable-item {
    background-color: #2d2d3f;
    border-color: #404055;
}

body.dark-mode .repeatable-container {
    background-color: #252535;
    border-color: #404055;
}

body.dark-mode .file-info {
    color: #9ca3af;
}

body.dark-mode .step-number {
    background-color: #2d2d3f;
    color: #9ca3af;
}

body.dark-mode .step-line {
    background-color: #404055;
}

body.dark-mode .step-label {
    color: #9ca3af;
}

body.dark-mode .modal-content {
    background-color: #1e1e2e;
}

body.dark-mode .modal-message {
    color: #d1d5db;
}

body.dark-mode .success-message {
    background: #065f46;
    color: #d1fae5;
}

body.dark-mode .error-message {
    background: #991b1b;
    color: #fee2e2;
}

body.dark-mode .btn-secondary {
    background: #2d2d3f;
    color: #667eea;
    border-color: #667eea;
}

body.dark-mode .btn-secondary:hover {
    background: #3d3d52;
}

body.dark-mode input[type="file"] {
    background-color: #2d2d3f;
    border-color: #404055;
}

body.dark-mode input[type="file"]:hover {
    background-color: #353748;
    border-color: #667eea;
}

body.dark-mode .file-preview-item img,
body.dark-mode .file-preview-item .file-icon {
    background-color: #2d2d3f;
    border-color: #404055;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 24px;
        border-radius: 12px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    label {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .size-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

    .step-indicator {
        margin-bottom: 25px;
        padding: 15px 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-line {
        width: 40px;
        margin: 0 6px;
    }

    .repeatable-item {
        padding: 16px;
    }

    .file-preview-item img,
    .file-preview-item .file-icon {
        width: 90px;
        height: 90px;
    }

    .file-preview-item .file-name {
        max-width: 90px;
        font-size: 10px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 24px;
        width: 95%;
    }

    .modal-icon {
        font-size: 48px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-message {
        font-size: 14px;
    }

    .modal-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 18px;
    }

    .header h1 {
        font-size: 1.3em;
    }

    .step-line {
        width: 28px;
        margin: 0 4px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .file-preview-item img,
    .file-preview-item .file-icon {
        width: 75px;
        height: 75px;
    }

    .file-preview-item .file-name {
        max-width: 75px;
        font-size: 9px;
    }
}