/* Event Tour Styles - Exact match to provided images */
.main-content {
    /* background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%); */
    background-color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    /* color: #6f44ff; */
}

.tour-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.tour-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #6f44ff;
}

.tour-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
    font-weight: 400;
}





/* ========== promoter Styles starts ========== */
.tour-logo-container {
    position: relative;
    display: inline-block;
}

.tour-logo-tooltip {
    display: none;
    position: absolute;
    bottom: -1.6em;
    /* just below the image */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #6f44ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.tour-logo-container:hover .tour-logo-tooltip {
    display: block;
}

.tour-organizer-name {
    /* style your fallback name */
    font-size: 3.5em;
    color: #6f44ff;
}

/* ========== promoter Styles ends ========== */





.events-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    /* background: linear-gradient(135deg, #a988ff 0%, #6f44ff 100%); */
    background: #ffffff;
    border: 1px solid #c4a7ff;
    border-radius: 16px;
    /* color: #6f44ff; */
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px #c4a7ff(0, 0, 0, 0.4);
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #eee6ff(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #eee6ff 0%, #eee6ff 100%);
}

.event-date {
    flex-shrink: 0;
    text-align: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a988ff 0%, #6f44ff 100%);
    border: 1px solid #3817a3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px #4a21cc(0, 0, 0, 0.3);
}

/* .event-date:hover {
transform: translateY(-4px);
box-shadow: 0 12px 30px #4a21cc(0, 0, 0, 0.6);
background: linear-gradient(135deg, #5c31e6 0%, #4a21cc 100%);
} */

.event-date .month {
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
}

.event-date .year {
    font-size: 0.7rem;
    color: #ffffff;
    font-weight: 500;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #6f44ff;
}

.event-venue {
    font-size: 1rem;
    color: #6f44ff;
    margin: 0;
    font-weight: 400;
}

.event-action {
    flex-shrink: 0;
}

.tickets-btn {
    background: linear-gradient(135deg, #a988ff 0%, #6f44ff 100%);
    color: #ffffff;
    border: 1px solid #4a21cc;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px #4a21cc(0, 0, 0, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
}

/* .tickets-btn:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px #4a21cc(0, 0, 0, 0.6);
background: linear-gradient(135deg, #5c31e6 0%, #4a21cc 100%);
} */

.tickets-btn.sold-out {
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
    color: #cccccc;
    cursor: not-allowed;
    border: 1px solid #666666;
}

.tickets-btn.sold-out:hover {
    transform: none;
    background: linear-gradient(135deg, #555555 0%, #444444 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.signup-event-item {
    background: #a988ff;
    border: 1px solid #6f44ff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px #4a21cc(0, 0, 0, 0.4);
}

.signup-event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #8a66ff(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #8a66ff 0%, #8a66ff 100%);
}

.signup-content {
    flex: 1;
    min-width: 0;
}

.signup-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.signup-content p {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
}

.signup-btn {
    background: linear-gradient(135deg, #a988ff 0%, #6f44ff 100%);
    color: #ffffff;
    border: 1px solid #4a21cc;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px #4a21cc(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* .signup-btn:hover {
transform: translateY(-2px);
box-shadow: 0 12px 30px #4a21cc(0, 0, 0, 0.6);
background: linear-gradient(135deg, #5c31e6 0%, #4a21cc 100%);
} */

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 16px;
    max-width: 980px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Event Header Styles for Modal */
.modal-event-header {
    position: relative;
    padding: 24px;
    text-align: center;
    background: linear-gradient(135deg, #6f44ff 0%, #6f44ff 100%);
    border-radius: 16px 16px 0 0;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    /* background: #FFFFFF; */
    background: #6F44FF;
    /* border: none; */
    /* color: #6F44FF; */
    color: white;
    border: 1px solid white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35%;
    transition: all 200ms ease;
    z-index: 10;
}

.modal-close:hover {
    background: white;
    color: #6F44FF;
    transform: scale(1.1);
    border: 0px;
}

.modal-event-image {
    margin-bottom: 16px;
}

.modal-event-image img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.modal-event-details h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-event-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Form Styles for Modal */
.modal-signup-form {
    background: white;
    padding: 32px 24px 24px;
}

.modal-form-group {
    margin-bottom: 24px;
}

.modal-form-group label {
    display: block;
    /* color: #fff; */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Input Styles for Modal */
.modal-content input[type="email"],
.modal-content input[type="tel"],
.modal-content input[type="text"],
.modal-content input[type="datetime-local"],
.modal-content select,
.modal-content .username-input {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #3817a3;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.modal-content input[type="email"]:focus,
.modal-content input[type="tel"]:focus,
.modal-content input[type="text"]:focus,
.modal-content select:focus,
.modal-content .username-input:focus {
    outline: none;
    border-color: #6f44ff;
    background: #ffffff;
}

.modal-content input::placeholder {
    color: #888;
}

.modal-content select option {
    background: #fff;
    color: #000;
    padding: 8px;
}

/* Sign Up Button for Modal */
.modal-signup-btn {
    width: 100%;
    padding: 16px;
    background: #6f44ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.modal-signup-btn:hover {
    background: #4a21cc;
}

.modal-signup-btn:active {
    background: #4a21cc;
}

.modal-signup-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555555;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #777777;
}

.social-btn.active {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
}

.instagram-btn:hover {
    opacity: 0.9;
}

.tiktok-btn {
    background: #000;
    border: 1px solid #ff0050;
}

.tiktok-btn:hover {
    background: #1a1a1a;
}

.facebook-btn {
    background: #1877f2;
    border: none;
}

.facebook-btn:hover {
    background: #166fe5;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.username-input {
    margin-top: 12px;
}

/* Name Group Styling */
.modal-content .name-inputs {
    display: flex;
    gap: 12px;
}

.modal-content .name-inputs input {
    flex: 1;
}

/* Terms Text */
.terms-text {
    font-size: 11px;
    line-height: 1.4;
    color: #888;
    margin-top: 20px;
}

.terms-text p {
    margin-bottom: 12px;
}

.terms-text p:last-child {
    margin-bottom: 0;
}

.terms-text a {
    color: #6f44ff;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #6f44ff;
    border-radius: 50%;
    border-top: 2px solid #fff;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Phone input with intl-tel-input styling for modal */
.modal-content .iti {
    width: 100%;
}

.modal-content .iti__country-list {
    background: #fff;
    border: 1px solid #555555;
    color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
}

.iti__selected-flag {
    height: auto !important;
}

.modal-content .iti__country {
    padding: 12px 16px;
    color: #000;
    border-bottom: 1px solid #000;
}

.modal-content .iti__country:hover {
    background: #c4a7ff;
}

.modal-content .iti__country--highlight {
    background: #4a90e2;
}

.modal-content .iti__selected-flag {
    background: #fff;
    border-radius: 8px 0 0 8px;
    border-right: 1px solid #3817a3;
    /* → set width, style, and your purple color */
    padding: 14px 12px;
}

.modal-content .iti__selected-flag:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-content .iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
}

.modal-content .iti input[type="tel"] {
    border-radius: 0 8px 8px 0;
    border-left: 1px solid;
    padding-left: 16px;
    border-radius: 9px;
}




/* Mobile Responsiveness */
@media (max-width: 767px) {
    .main-content {
        padding: 60px 15px 60px;
    }

    .tour-title {
        font-size: 2rem;
    }

    /* promoter styles */
    .tour-logo {
        max-width: 502px;
    }

    .events-container {
        max-width: 100%;
    }

    .event-item {
        padding: 16px;
        gap: 16px;
    }

    .event-date {
        width: 70px;
        height: 70px;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

    .modal-container {
        align-items: flex-start;
        padding: 33px 15px 120px;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-event-header {
        padding: 20px;
    }

    .modal-event-image img {
        width: 110px;
        height: 110px;
    }

    .modal-signup-form {
        padding: 0px 20px 20px;
    }

    .modal-content .name-inputs {
        gap: 10px;
    }

    .social-buttons {
        gap: 10px;
    }

    .modal-content .iti__country-list {
        max-width: 400px;
        width: auto;
    }

}


@media (max-width: 575px) {
    /* promoter styles */
    .tour-logo {
        max-width: 430px;
    }
}




@media (max-width: 480px) {
    .main-content {
        padding: 80px 20px 80px;
    }

    .modal-container {
        align-items: flex-start;
        padding: 90px 10px 150px;
    }

    .modal-content {
        border-radius: 12px;
        max-height: 95vh;
    }

    .modal-event-header {
        padding: 16px;
        border-radius: 12px 12px 0 0;
    }

    .modal-event-image img {
        width: 90px;
        height: 90px;
    }

    .modal-event-details h2 {
        font-size: 16px;
    }

    .modal-event-details p {
        font-size: 13px;
    }

    .modal-signup-form {
        padding: 20px 16px 16px;
    }

    .modal-form-group {
        margin-bottom: 20px;
    }

    .modal-form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .modal-content input[type="email"],
    .modal-content input[type="tel"],
    .modal-content input[type="text"],
    .modal-content select,
    .modal-content .username-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .modal-content .name-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .social-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .social-btn {
        padding: 12px;
    }

    .modal-signup-btn {
        padding: 14px;
        font-size: 15px;
        margin-bottom: 20px;
    }

    .terms-text {
        font-size: 10px;
    }

    .modal-content .iti__selected-flag {
        padding: 12px 10px;
    }

    .modal-content .iti input[type="tel"] {
        padding: 12px 14px;
    }

    .modal-content .iti__country-list {
        max-width: 160px;
        width: auto;
    }
    
    .tour-title {
        font-size: 1.8rem;
    }

    .event-item {
        padding: 12px;
        gap: 12px;
    }

    .event-date {
        width: 60px;
        height: 60px;
    }

    .event-date .day {
        font-size: 1.3rem;
    }

    .event-date .month,
    .event-date .year {
        font-size: 0.65rem;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .event-venue {
        font-size: 0.9rem;
    }

    .tickets-btn,
    .signup-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}