.spartak-donation-form-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.spartak-donation-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #dc143c 0%, #ff6b6b 50%, #dc143c 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.spartak-donation-form-header {
    text-align: center;
    padding: 50px 40px 30px;
    background: #027ff2;
    color: white;
    position: relative;
    overflow: hidden;
}

.spartak-donation-form-header::before {
    content: '❤️';
    position: absolute;
    font-size: 200px;
    opacity: 0.85;
    top: -50px;
    right: -30px;
    transform: rotate(-15deg);
}

.spartak-donation-form-header h2 {
    color: #ffffff;
    margin: 0 0 15px;
    font-size: 38px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.spartak-donation-form-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.spartak-donation-form-header .lang-switch {
    margin-top: 16px;
    display: inline-flex;
    gap: 10px;
}

.flag-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    font-size: 22px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    backdrop-filter: blur(2px);
    background: rgba(255,255,255,0.15);
    transition: all 0.2s ease;
}

.flag-option:hover span {
    border-color: #ffffff;
    background: rgba(255,255,255,0.25);
}

.flag-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.flag-option input[type="radio"]:checked + span {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.3);
}

/* Stadium Statistics */
.spartak-stadium-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e2e8f0;
}

.spartak-stadium-stats .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.spartak-stadium-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #dc143c20;
}

.spartak-stadium-stats .stat-icon {
    font-size: 36px;
    line-height: 1;
}

.spartak-stadium-stats .stat-content {
    flex: 1;
}

.spartak-stadium-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.1;
}

.spartak-stadium-stats .stat-label {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spartak-stadium-stats .stat-progress {
    margin-top: 10px;
}

.spartak-stadium-stats .progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.spartak-stadium-stats .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc143c 0%, #ff6b6b 100%);
    transition: width 0.6s ease;
}

.spartak-stadium-stats .progress-text {
    font-size: 11px;
    color: #718096;
    font-weight: 600;
}

/* Section Info */
.spartak-section-info {
    padding: 30px 40px;
    background: white;
    border-bottom: 2px solid #e2e8f0;
}

.spartak-section-info h3 {
    color: #2c3e50;
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.section-card {
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-card.north {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fee 0%, #f8f9fa 100%);
}

.section-card.east {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #f8f9fa 100%);
}

.section-card.south {
    border-left-color: #16a34a;
    background: linear-gradient(135deg, #f0fdf4 0%, #f8f9fa 100%);
}

.section-card.west {
    border-left-color: #ca8a04;
    background: linear-gradient(135deg, #fefce8 0%, #f8f9fa 100%);
}

.section-card .section-name {
    font-weight: 700;
    font-size: 15px;
    color: #2c3e50;
}

.section-card .section-capacity {
    font-size: 13px;
    color: #718096;
    font-weight: 600;
}

.section-note {
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dc143c;
}

.spartak-donation-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 40px;
}

.spartak-form-section {
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #f0f0f0;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.spartak-form-section:hover {
    border-color: #dc143c20;
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.08);
    transform: translateY(-2px);
}

.spartak-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #dc143c 0%, #ff6b6b 100%);
    border-radius: 16px 0 0 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spartak-form-section:hover::before {
    opacity: 1;
}

.spartak-form-section h3 {
    color: #2c3e50;
    margin: 0 0 25px;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.spartak-form-section h3::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #dc143c 0%, #ff6b6b 100%);
    border-radius: 3px;
    display: inline-block;
}

.spartak-form-field {
    margin-bottom: 28px;
    position: relative;
}

.spartak-form-field:last-child {
    margin-bottom: 0;
}

.spartak-form-field label {
    display: block;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.spartak-form-field .required {
    color: #dc143c;
    font-size: 16px;
}

.spartak-form-field input[type="text"],
.spartak-form-field input[type="email"],
.spartak-form-field input[type="tel"],
.spartak-form-field input[type="number"],
.spartak-form-field select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #2c3e50;
}

.spartak-form-field input[type="file"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Ticket Information tweaks */
.field-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.field-grid .spartak-form-field:nth-child(1) { grid-column: span 12; }
.field-grid .spartak-form-field:nth-child(2) { grid-column: span 6; }
.field-grid .spartak-form-field:nth-child(3) { grid-column: span 6; }

@media (max-width: 768px) {
    .field-grid { grid-template-columns: 1fr; }
    .field-grid .spartak-form-field:nth-child(n) { grid-column: auto; }
}

.choice-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.choice-option {
    display: inline-flex;
    align-items: stretch;
    position: relative;
    cursor: pointer;
}

.choice-option:hover span {
    border-color: #dc143c;
    background: #fff;
}

/* New: 2-col grid pills for choices */
.choice-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.choice-grid-2 .choice-option { width: 100%; }

/* New: visual checked state using hidden radios */
.choice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-option span {
    display: inline-block;
    width: 90%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
}

.choice-option input[type="radio"]:checked + span {
    background: #ffffff;
    border-color: #dc143c;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.08);
    color: #1d2327;
}

.spartak-form-field input[type="file"]:hover {
    border-color: #dc143c;
    background: #fff;
}

.spartak-form-field input:focus,
.spartak-form-field select:focus {
    outline: none;
    border-color: #dc143c;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    transform: translateY(-1px);
}

.spartak-form-field input:hover:not(:focus),
.spartak-form-field select:hover:not(:focus) {
    border-color: #cbd5e0;
}

.spartak-form-field .description {
    margin: 10px 0 0;
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    padding-left: 4px;
}

#image-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    text-align: center;
}

#image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


#payment-element {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    min-height: 120px;
    transition: all 0.3s ease;
}

#payment-element:focus-within {
    border-color: #dc143c;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

#payment-element iframe {
    border-radius: 8px;
}

.payment-message {
    padding: 18px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

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

.payment-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.payment-message.success::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.payment-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.payment-message.error::before {
    content: '!';
    width: 24px;
    height: 24px;
    background: #dc143c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.spartak-form-actions {
    display: flex;
    justify-content: center;
    padding-top: 30px;
}

.spartak-form-actions button {
    position: relative;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #dc143c 0%, #a00f2e 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.25);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    overflow: hidden;
}

.spartak-form-actions button::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;
}

.spartak-form-actions button:hover:not(:disabled)::before {
    left: 100%;
}

.spartak-form-actions button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.spartak-form-actions button:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.spartak-form-actions button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.spartak-donation-error {
    padding: 25px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f5c6cb;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .spartak-donation-form-wrapper {
        margin: 20px auto;
        border-radius: 16px;
    }
    
    .spartak-donation-form {
        padding: 25px 20px;
    }
    
    .spartak-donation-form-header {
        padding: 40px 25px 25px;
    }
    
    .spartak-donation-form-header h2 {
        font-size: 28px;
    }
    
    .spartak-donation-form-header p {
        font-size: 15px;
    }
    
    .spartak-stadium-stats {
        padding: 25px 20px;
        grid-template-columns: 1fr;
    }
    
    .spartak-section-info {
        padding: 25px 20px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .spartak-form-section {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .spartak-form-section h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .spartak-donation-form-wrapper {
        margin: 10px;
        border-radius: 12px;
    }
    
    .spartak-donation-form {
        padding: 20px 15px;
    }
    
    .spartak-donation-form-header {
        padding: 30px 20px 20px;
    }
    
    .spartak-donation-form-header h2 {
        font-size: 24px;
    }
    
    .spartak-stadium-stats {
        padding: 20px 15px;
    }
    
    .spartak-stadium-stats .stat-value {
        font-size: 24px;
    }
    
    .spartak-section-info {
        padding: 20px 15px;
    }
    
    .spartak-form-section {
        padding: 20px 15px;
    }
    
    .spartak-form-section h3 {
        font-size: 18px;
    }
    
    .spartak-form-actions button {
        padding: 14px 40px;
        font-size: 16px;
    }
}

/* Photo Upload Zones */
.photo-upload-zone {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-top: 8px;
}

.photo-upload-zone:hover {
    border-color: #dc143c;
    background: #fff5f5;
}

.photo-upload-zone.drag-over {
    border-color: #dc143c;
    background: #fff0f0;
    transform: scale(1.02);
}

.photo-upload-zone .photo-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.photo-upload-zone .upload-area {
    cursor: pointer;
    padding: 20px;
}

.photo-upload-zone .upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.photo-upload-zone .upload-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.photo-upload-zone .upload-text .primary {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.photo-upload-zone .upload-text .secondary {
    font-size: 14px;
    color: #666;
}

/* Upload Progress */
.upload-progress {
    padding: 20px;
}

.upload-progress .progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc143c, #ff4d6d);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress .progress-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Upload Preview */
.upload-preview {
    position: relative;
    padding: 10px;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 50%;
    transform: translateX(calc(50% - 100px));
    background: #dc143c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.remove-image:hover {
    background: #b91c3c;
}

/* Upload Error */
.upload-error {
    padding: 10px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 14px;
}

/* Ticket Groups */
.ticket-group {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.ticket-group::before {
    content: attr(data-ticket);
    position: absolute;
    top: -10px;
    left: 15px;
    background: #dc143c;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ticket-group .spartak-form-field {
    margin-bottom: 15px;
}

.ticket-group .spartak-form-field:last-child {
    margin-bottom: 0;
}

/* Photo Upload Responsive Design */
@media (max-width: 768px) {
    .photo-upload-zone {
        padding: 15px;
    }
    
    .photo-upload-zone .upload-area {
        padding: 15px;
    }
    
    .photo-upload-zone .upload-icon {
        font-size: 2rem;
    }
    
    .preview-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .ticket-group {
        padding: 15px;
    }
    
    .remove-image {
        transform: translateX(calc(50% - 75px));
    }
}

/* Animation for drag and drop */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.photo-upload-zone.drag-over .upload-icon {
    animation: pulse 1s infinite;
}

/* Loading state */
.photo-upload-zone.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.photo-upload-zone.uploading .upload-area {
    cursor: not-allowed;
}

/* Success state */
.photo-upload-zone.upload-success {
    border-color: #28a745;
    background: #f8fff9;
}

