/**
 * Frontend styles for Vincent's Events registration form.
 */

.ve-registration-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Messages */
.ve-message {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.ve-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.ve-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Section titles */
.ve-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}
.ve-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Form sections */
.ve-form-section {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Select dropdown */
.ve-vendor-form select,
.ve-vendor-form input[type="text"],
.ve-vendor-form input[type="email"],
.ve-vendor-form input[type="tel"],
.ve-vendor-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.ve-vendor-form select:focus,
.ve-vendor-form input:focus,
.ve-vendor-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

/* Event info box */
.ve-event-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 18px;
}
.ve-event-info-box p {
    margin: 5px 0;
    font-size: 14px;
}
.ve-event-info-box .ve-deadline-notice {
    color: #e74c3c;
    font-weight: 600;
}
.ve-availability-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.ve-availability-list li {
    padding: 4px 0;
    font-size: 14px;
}
.ve-availability-list .ve-sold-out {
    color: #e74c3c;
    font-weight: 600;
}

/* Needs checkboxes */
.ve-needs-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ve-needs-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.ve-needs-checkboxes label:hover {
    border-color: #3498db;
    background: #eef7ff;
}
.ve-needs-checkboxes label.ve-checked {
    border-color: #3498db;
    background: #eef7ff;
}

/* Offering blocks */
.ve-offering-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
}
.ve-offering-block h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #2c3e50;
}
.ve-offering-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}
.ve-offering-row label {
    font-size: 14px;
    color: #495057;
}
.ve-offering-row select {
    width: auto;
    min-width: 70px;
}
.ve-line-total {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-left: auto;
}

/* Electric option */
.ve-electric-option {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

/* Total bar */
.ve-total-bar {
    background: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
#ve-grand-total {
    font-size: 22px;
    font-weight: 700;
}

/* Fee breakdown */
.ve-fee-breakdown {
    text-align: right;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Field grid */
.ve-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ve-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
.ve-field-full {
    grid-column: 1 / -1;
}

/* Required */
.required {
    color: #e74c3c;
}

/* Photo uploads */
.ve-photo-uploads {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.ve-photo-upload {
    flex: 1;
    min-width: 200px;
}
.ve-photo-upload label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}
.ve-photo-upload input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background: #f8f9fa;
}
.ve-photo-preview {
    margin-top: 8px;
}
.ve-photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}
.ve-photo-preview .ve-upload-status {
    font-size: 12px;
    color: #27ae60;
}

/* Terms text */
.ve-terms-text {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 18px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-line;
}
.ve-agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Selection summary */
.ve-selection-summary {
    text-align: center;
    margin-bottom: 12px;
    min-height: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.ve-summary-warning {
    color: #856404;
    font-size: 13px;
}
.ve-summary-valid {
    color: #2c3e50;
    font-weight: 500;
}

/* Submit button */
.ve-submit-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.ve-submit-btn:hover:not(:disabled) {
    background: #219a52;
}
.ve-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Helper text */
.ve-helper-text {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Success screen */
.ve-success-screen {
    text-align: center;
    padding: 60px 20px;
}
.ve-success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    color: #27ae60;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}
.ve-success-screen h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}
.ve-success-screen p {
    font-size: 16px;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* Loading spinner */
.ve-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: ve-spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}
@keyframes ve-spin {
    to { transform: rotate(360deg); }
}

/* No events message */
.ve-no-events {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Sold-out banner */
.ve-sold-out-banner {
    text-align: center;
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
}
.ve-sold-out-banner p {
    margin: 8px 0 0;
    color: #7f1d1d;
}

/* Waitlist notices */
.ve-waitlist-notice,
.ve-waitlist-pricing-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Duplicate photo warning */
.ve-duplicate-photo-warning {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 0.9em;
    color: #856404;
    border-radius: 3px;
}

/* Duplicate registration warning */
.ve-duplicate-warning {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 8px 12px;
    margin-top: 6px;
    font-size: 0.9em;
    color: #856404;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .ve-field-grid {
        grid-template-columns: 1fr;
    }
    .ve-offering-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ve-line-total {
        margin-left: 0;
    }
    .ve-total-bar {
        font-size: 16px;
        flex-direction: column;
        gap: 5px;
    }
    .ve-needs-checkboxes {
        flex-direction: column;
    }
}
