/**
 * Simple Unde Tickets - Public CSS
 * Matching the original unde_tickets plugin UI/UX
 */

/* Moldova Forum Payment Notification */
.moldova-forum-payment {
    margin-top: 20px;
}

.moldova-forum-payment .register_btn:hover {
    background: #ffb300 !important;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

/* Side Events Styling */
.side-event-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.side-events-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 8px;
    margin: -4px;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #f3f4f6;
}

.side-events-container::-webkit-scrollbar {
    width: 8px;
}

.side-events-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.side-events-container::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

.side-events-container::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Add shadow indicators for scrollable content */
.side-events-container {
    position: relative;
    background:
        linear-gradient(white 30%, rgba(255,255,255,0)),
        linear-gradient(rgba(255,255,255,0), white 70%) 0 100%,
        linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0)),
        linear-gradient(0, rgba(0,0,0,0), rgba(0,0,0,0.1)) 0 100%;
    background-repeat: no-repeat;
    background-color: white;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

.side-event-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: white;
    margin-bottom: 12px;
    min-height: fit-content;
}

.side-event-item:last-child {
    margin-bottom: 0;
}

.side-event-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.side-event-label {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    cursor: pointer;
    gap: 12px;
    height: auto;
    min-height: fit-content;
}

.side-event-checkbox {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8b5cf6;
    flex-shrink: 0;
}

.side-event-checkbox:checked {
    transform: scale(1.1);
}

.side-event-info {
    flex: 1;
}

.side-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.side-event-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.side-event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.side-event-price {
    font-size: 16px;
    font-weight: 600;
    color: #8b5cf6;
    padding: 6px 10px;
    background: #f9f5ff;
    border-radius: 6px;
    white-space: nowrap;
    align-self: flex-start;
}

.side-event-price.free {
    color: #10b981;
    background: #ecfdf5;
}

.side-event-price.paid {
    color: #ff6f00;
    background: #fff3e0;
    font-weight: 600;
}

.side-event-price.sold-out {
    color: #dc3545;
    background: #f8d7da;
    font-weight: 600;
}

/* Non-visible side events styling */
.side-event-item.non-visible {
    opacity: 0.6;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
}

.side-event-item.non-visible .side-event-title {
    color: #6c757d;
}

.side-event-item.non-visible .side-event-description {
    color: #adb5bd;
}

.side-event-item.non-visible .side-event-time,
.side-event-item.non-visible .side-event-location {
    color: #adb5bd;
}

.side-event-item.non-visible .side-event-checkbox {
    cursor: not-allowed;
}

.side-event-item.non-visible:hover {
    transform: none;
    box-shadow: none;
}

.side-event-time {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

/* Clock icon now in HTML template */

.side-event-location {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.side-event-item:has(.side-event-checkbox:checked) {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f9f5ff 0%, #ede9fe 100%);
    box-shadow: 0 4px 12px -2px rgba(139, 92, 246, 0.2);
}

.side-event-item:has(.side-event-checkbox:checked) .side-event-title {
    color: #7c3aed;
    font-weight: 700;
}

.side-event-item:has(.side-event-checkbox:checked) .side-event-price {
    background: #8b5cf6;
    color: white;
}

.side-event-item:has(.side-event-checkbox:checked) .side-event-price.free {
    background: #10b981;
    color: white;
}

.side-event-item:has(.side-event-checkbox:checked) .side-event-price.paid {
    background: #ff6f00;
    color: white;
}

.side-event-item:has(.side-event-checkbox:checked) .side-event-price.sold-out {
    background: #dc3545;
    color: white;
}

/* Success State Side Events */
.selected-side-events {
    margin-top: 20px;
    padding: 16px;
    background: #f9f5ff;
    border-radius: 8px;
}

.side-events-confirmation {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.side-events-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.side-events-list li {
    font-size: 14px;
    color: #8b5cf6;
    font-weight: 500;
    margin: 6px 0;
}

/* Base Form Styling */
.simple-unde-registration-form {
    font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.form-container.disabled-form {
    opacity: 0.6;
    pointer-events: none;
}

/* Steps */
.step {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step h2 {
    font-family: Onest;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    color: #000;
    margin: 0;
    padding: 0;
    border: none;
}

.step-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

/* Form Elements */
.form-group label {
    display: block;
    font-family: Onest;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #000;
    margin-bottom: 8px;
}

.form-group .required {
    color: red;
}

.form-control {
    font-family: Onest;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: #000;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid #EAECF0;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #3A86FF;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.form-control.error {
    outline: 1px solid red;
    border-color: red;
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Navigation Buttons */
.step-navigator {
    padding: 0;
    color: #000;
    background: none;
    border: none;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: Onest;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    align-self: flex-end;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    margin-top: 0;
}

.step-navigator span {
    padding: 8px;
    background: #000;
    border-radius: 50%;
    color: #fff;
    line-height: 100%;
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}

.step-navigator.is-prev {
    align-self: flex-start;
    margin-bottom: 0;
}

@media (hover: hover) {
    .step-navigator:hover {
        color: #3A86FF;
        transform: none;
        box-shadow: none;
    }
    
    .step-navigator:hover span {
        background: #3A86FF;
        color: #fff;
    }
}

/* Submit Button */
.register_btn.form-submit {
    display: flex;
    gap: 8px;
    padding: 8px 32px;
    border-radius: 50px;
    border: 1px solid #000;
    background: #000;
    color: #FFF;
    font-family: Onest;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    margin-top: 0;
    align-self: flex-end;
}

@media (hover: hover) {
    .register_btn.form-submit:hover:not(:disabled) {
        color: #000 !important;
        background: transparent;
        transform: none;
        box-shadow: none;
    }
}

.register_btn.form-submit:disabled {
    background: #5C5C5B;
    border-color: #5C5C5B;
    cursor: not-allowed;
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border-top: 1px solid #fff;
    border-right: 1px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

/* Success State */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 48px 0;
}

.success-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-state h2 {
    font-family: Onest;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    color: #000;
    margin: 0;
}

.success-message {
    font-family: Onest;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #666;
    margin: 0;
}

.success-message strong {
    color: #000;
    font-weight: 500;
}

.register-another {
    margin-top: 8px;
}

/* Response Messages */
.response-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-family: Onest;
}

.response-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sold Out */
.sold-out-message {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.sold-out-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Progress Bar - Show all 3 steps */
.form-step {
    width: 33.33% !important;
    font-size: 14px;
    color: #bfbfbf;
    font-weight: 500;
    padding-bottom: 6px;
    position: relative;
}

.form-step::before {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    bottom: 0;
    left: 0;
    background: #BFBFBF;
    border-radius: 2px;
}

.form-step.active::before {
    background: #000;
}

.form-step.active {
    color: #000;
}

.form-step[data-step="1"],
.form-step[data-step="2"],
.form-step[data-step="3"] {
    display: block !important;
}

/* Override the progress bar segments if using ::before or ::after */
.form-progress-bar > *:first-child {
    display: none !important;
}

/* If the progress bar uses specific classes */
.step-1-indicator {
    display: none !important;
}

/* Error Messages */
.venue-error {
    display: none;
    color: red;
    font-family: Onest;
    font-size: 16px;
    font-style: normal;
    margin-top: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step h2 {
        font-size: 24px;
    }
    
    .success-state h2 {
        font-size: 24px;
    }
    
    .success-state {
        padding: 32px 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 24px;
    }
    
    .register_btn.form-submit,
    .register-another {
        width: 100%;
        justify-content: center;
    }
    
    .step-navigator {
        align-self: center;
    }
    
    .step-navigator.is-prev {
        align-self: center;
    }
    
    /* Side Events Mobile Adjustments */
    .side-events-container {
        max-height: 400px;
    }
    
    .side-event-details {
        gap: 6px;
    }
    
    .side-event-meta-row {
        flex-wrap: wrap;
    }
    
    .side-event-price,
    .side-event-time,
    .side-event-location {
        font-size: 13px;
        padding: 5px 8px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .side-event-title {
        font-size: 16px;
    }
    
    .side-event-description {
        font-size: 13px;
    }
}