/* Vendors Page Styles */

/* Hero Section */
.vendors-hero {
    background: var(--gradient);
    padding: 100px 20px 60px;
    text-align: center;
    color: var(--text-light);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

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

/* Booth Information Section */
.booth-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.booth-container h2 {
    margin-top: 4rem;
}

.booth-details h4,
.legend-container h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.booth-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booth-details li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.booth-details li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Merchandise Notice */
.merchandise-notice {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border: 2px solid #3b82f6;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
}

.notice-icon {
    font-size: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.notice-content {
    flex: 1;
    color: #1e3a8a;
    line-height: 1.6;
    font-size: 0.95rem;
}

.notice-content strong {
    color: #1e40af;
    font-weight: 600;
}

/* Legend Styles */
.legend-container {
    display: flex;
    flex-direction: column;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-color.available {
    background: #bfdbfe;
    border-color: #3b82f6;
}

.legend-color.selected {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.legend-color.unavailable {
    background: #ef4444;
    border-color: #dc2626;
    opacity: 0.8;
}

/* Section Title Styling */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.legend-color.premium {
    background: #3b82f6;
}

.legend-color.standard {
    background: #9ca3af;
}

.legend-color.selected {
    background: #10b981;
    border-color: #059669;
}

.legend-color.unavailable {
    background: #ef4444;
    opacity: 0.5;
}

/* Side by Side Wrapper */
.booth-selection-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

/* Booth Layout Image */
.booth-layout-image {
    position: sticky;
    top: 100px; /* Adjust based on your nav height */
    background: #f9fafb;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.booth-layout-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Booth Instructions */
.booth-instructions {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.booth-instructions h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.booth-instructions ul {
    list-style: none;
    padding: 0;
}

.booth-instructions li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #92400e;
    line-height: 1.6;
}

.booth-instructions li:before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Booth Lists Container */
.booth-lists-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.booth-list-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.booth-list-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid;
}

.booth-list-title.premium-title {
    color: #1e40af;
    border-color: #3b82f6;
}

.booth-list-title.standard-title {
    color: #4b5563;
    border-color: #9ca3af;
}

/* Booth List */
.booth-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.booth-list::-webkit-scrollbar {
    width: 6px;
}

.booth-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.booth-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.booth-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Individual Booth Item */
.booth-item {
    padding: 0.75rem 1rem;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
    min-width: 80px;
    text-align: center;
    flex: 0 0 auto;
}

.booth-item.premium {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.booth-item.premium:hover:not(.selected):not(.unavailable) {
    background: #bfdbfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.booth-item.standard {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #4b5563;
}

.booth-item.standard:hover:not(.selected):not(.unavailable) {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(156, 163, 175, 0.2);
}

.booth-item.selected {
    background: var(--primary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(208, 167, 100, 0.4);
}

.booth-item.unavailable {
    background: #fecaca !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.booth-item.disabled {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.5;
}

.booth-item.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.booth-item.adjacent-possible {
    animation: pulse 2s infinite;
    border-style: dashed;
}

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

/* Selected Booths Display */
.selected-booths-display {
    background: #fdf8f3;
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.selected-booths-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.selected-booths-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.clear-selection {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-selection:hover {
    background: #ef4444;
    color: white;
}

.selected-booths-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.selected-booth-item {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booth-price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Pricing Table */
.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pricing-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.pricing-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pricing-card.premium h4 {
    color: #1e40af;
}

.pricing-card.standard h4 {
    color: #4b5563;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.price-list li:last-child {
    border-bottom: none;
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, var(--secondary-color), #5a4a3a);
    color: white;
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.discount-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.discount-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

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

.discount-countdown {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.countdown-time {
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Pricing with discount styles */
.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: normal;
    margin-right: 0.5rem;
}

.discount-notice {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    list-style: none;
}

/* Registration Form */
.registration-section {
    padding: 60px 0 80px;
    background: var(--white);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* File Input Styles */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

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

.file-input-label {
    display: block;
    padding: 0.75rem;
    background: var(--white);
    border: 1px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.file-input-label.has-file {
    border-color: var(--success-color, #28a745);
    color: var(--success-color, #28a745);
    background: rgba(40, 167, 69, 0.05);
}

/* Terms Checkbox */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.terms-group input[type='checkbox'] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terms-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-label a:hover {
    color: var(--secondary-color);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type='radio'] {
    display: none;
}

.payment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-option input[type='radio']:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(208, 167, 100, 0.1);
}

.payment-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.payment-note {
    font-size: 0.85rem;
    color: #666;
}

/* Character Counter */
.char-count {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.form-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #d4edda;
    color: #155724;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.payment-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: left;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

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

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .pricing-info {
        grid-template-columns: 1fr;
    }

    .selected-booths-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booth-lists-container {
        grid-template-columns: 1fr;
    }

    .booth-row {
        justify-content: center;
    }

    .booth-item {
        min-width: 70px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .booth-info-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .legend-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .discount-content {
        flex-direction: column;
        text-align: center;
    }

    .discount-countdown {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .vendors-hero {
        padding: 80px 20px 40px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }
}
