/* General Reset */
body, h1, h2, h3, p, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    min-width: 320px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .logo img {
        width: 150px;
        margin-bottom: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo img {
        width: 120px;
    }

    .newsletter input[type="email"] {
        width: 100%;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        width: 120px;
    }

    nav {
        flex-direction: column;
        gap: 5px;
    }

    nav a {
        padding: 8px;
    }

    .social-icons {
        justify-content: center;
    }

    .form-navigation {
        width: 100%;
        padding: 15px 0;
        flex-direction: column;
        gap: 12px;
    }

    .nav-btn {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }

    #prev-btn, #next-btn, #submit-btn {
        margin: 0;
    }
}

/* iPhone SE Specific Adjustments */
@media screen and (max-width: 375px) {
    header {
        padding: 10px;
    }

    .logo img {
        width: 100px;
    }

    nav {
        gap: 5px;
    }

    nav a {
        font-size: 0.8rem;
        padding: 5px;
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ccc;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 200px;
    height: auto;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #007BFF;
}

/* Countdown Container */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    padding: 20px;
}

@media screen and (max-width: 550px) {
    .countdown {
        padding: 10px;
        margin: 30px auto;
        transform: scale(0.9);
    }

    #flipdown {
        transform-origin: center;
    }
}

@media screen and (max-width: 375px) {
    .countdown {
        padding: 5px;
        margin: 20px auto;
        transform: scale(0.7);
    }
}

/* Footer */
footer {
    background-color: #f8f8f8;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a, .footer-contact a {
    color: #333;
    font-size: 14px;
}

.footer-nav a:hover, .footer-contact a:hover {
    color: #007BFF;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #007BFF;
}

.newsletter {
    margin-top: 20px;
}

.newsletter input[type="email"] {
    padding: 10px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.newsletter button {
    padding: 10px 15px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #0056b3;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.cookie-banner button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.cookie-banner button:hover {
    background-color: #0056b3;
}

/* Vendor Form Styles */
.vendor-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 700px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.vendor-form-container.show {
    opacity: 1;
    transform: translateY(0);
}

.vendor-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #007BFF;
    transition: width 0.3s ease;
}

.vendor-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.vendor-form::-webkit-scrollbar {
    width: 8px;
}

.vendor-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.vendor-form::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.vendor-form::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.form-step {
    margin-bottom: 30px;
    padding: 0 20px;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.file-hint,
.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 20px;
    position: sticky;
    bottom: 0;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.nav-btn {
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
    text-align: center;
}

#prev-btn {
    background-color: #6c757d;
    margin-right: 5px;
}

#next-btn, #submit-btn {
    background-color: #007BFF;
    margin-left: 5px;
}

@media screen and (max-width: 480px) {
    .vendor-form-container {
        margin: 20px auto;
        padding: 15px;
        height: 80vh;
        width: 100%;
        max-width: 100%;
    }

    .form-step {
        padding: 0;
        min-height: 180px;
        width: 100%;
    }

    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .checkbox-group {
        width: 100%;
        padding: 0;
    }

    .checkbox-item {
        width: 100%;
        padding: 5px 0;
    }

    .other-input-container {
        width: 100%;
        padding: 0;
    }

    .other-input-container input {
        width: 100%;
    }

    .form-navigation {
        width: 100%;
        padding: 15px;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        position: sticky;
        bottom: 0;
        background: #fff;
        margin-top: auto;
        box-sizing: border-box;
    }

    .nav-btn {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 12px;
        font-size: 14px;
        margin: 0;
        width: auto;
    }

    #prev-btn {
        margin-right: 5px;
    }

    #next-btn, #submit-btn {
        margin-left: 5px;
    }
}

@media screen and (max-width: 375px) {
    .vendor-form-container {
        padding: 10px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
}

/* Add these styles to your existing CSS */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007BFF;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    color: #333;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: #007BFF;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-group.error {
    border: 1px solid #dc3545;
    padding: 10px;
    border-radius: 6px;
}

.other-input-container {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.other-input-container input {
    width: 80%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    max-width: 400px;
}

.other-input-container input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.other-input-container.error input {
    border-color: #dc3545;
}

@media screen and (max-width: 480px) {
    .other-input-container input {
        width: 100%;
        max-width: none;
    }
}

/* Add these styles for radio buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007BFF;
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    color: #333;
}

.radio-item input[type="radio"]:checked + label {
    color: #007BFF;
}

.radio-group.invalid {
    border: 1px solid #dc3545;
    padding: 10px;
    border-radius: 6px;
}

/* Update file input styles for Uploadcare */
.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-input-button {
    padding: 12px 24px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.file-input-button:hover {
    background-color: #0056b3;
}

.file-name {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #666;
    background-color: #f8f8f8;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

/* Add these styles for the success modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.success-message {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.success-details {
    color: #666;
    margin-bottom: 30px;
}

.close-success {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.close-success:hover {
    background-color: #218838;
}

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

@media screen and (max-width: 480px) {
    .success-content {
        padding: 30px 20px;
        width: 85%;
    }

    .success-message {
        font-size: 20px;
    }
}

/* Add these new styles for the vendor registration button */
.vendor-registration-button-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

.vendor-registration-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    padding: clamp(12px, 2vw, 15px) clamp(20px, 4vw, 30px);
    border-radius: 8px;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.vendor-registration-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vendor-registration-btn i {
    font-size: 20px;
}

/* Event Date styles */
.event-date-container {
    text-align: center;
    margin: -10px 0 30px; /* Negative top margin to bring it closer to the countdown */
}

.event-date-container p {
    font-size: clamp(1.125rem, 3vw, 1.5rem); /* 18px to 24px */
    font-weight: 600;
    color: #007BFF; /* Use the brand's blue color for emphasis */
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 480px) {
    .vendor-registration-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* New Countdown Styles */
.new-countdown {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    box-sizing: border-box;
}

.new-countdown h1 {
    color: #333;
    font-size: clamp(20px, 3.5vw, 38px);
    margin-bottom: clamp(20px, 4vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    padding: 0 10px;
    white-space: nowrap;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.countdown-segment {
    background: #007BFF;
    color: white;
    padding: clamp(15px, 3vw, 20px);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.countdown-segment .number {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 5px;
}

.countdown-segment .label {
    font-size: clamp(12px, 2vw, 14px);
    text-transform: uppercase;
    opacity: 0.9;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    main {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        padding: 0;
        margin: 0 auto;
    }

    .new-countdown {
        padding: 20px 0;
        margin: 0 auto;
        width: 100%;
    }

    .new-countdown h1 {
        white-space: normal;
        font-size: clamp(18px, 5vw, 28px);
        padding: 0 10px;
        margin: 0 auto 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .event-date-container {
        margin: 0 0 25px;
    }

    .vendor-registration-button-container {
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .vendor-registration-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 20px 15px;
        width: 100%;
        margin: 0;
        left: 0;
        right: 0;
    }

    .footer-logo img {
        width: 120px;
    }

    .newsletter input[type="email"] {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 0 10px;
    }

    .countdown-timer {
        padding: 0;
        gap: 10px;
        width: 100%;
    }

    .countdown-segment {
        padding: 10px;
    }

    .new-countdown {
        padding: 15px 0;
    }

    .vendor-registration-button-container {
        padding: 0 5px;
    }

    .vendor-registration-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    footer {
        padding: 20px 10px;
    }
}

@media screen and (max-width: 375px) {
    .new-countdown {
        padding: 15px 0;
    }

    .vendor-registration-button-container {
        padding: 0 5px;
    }
}

.honeypot-field {
    display: none !important;
}

/* Add these styles in the style section */
/* Copyright Styles */
.copyright {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .copyright {
        margin-top: 15px;
        padding-top: 15px;
        font-size: 12px;
        justify-content: center;
        text-align: center;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 20px 15px;
        width: 100%;
        margin: 0;
        left: 0;
        right: 0;
        display: grid;
        justify-items: center;
    }
}

/* Add these styles for required fields */
.form-group label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.required-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.required-note span {
    color: #dc3545;
}

/* Add these styles for invalid fields */
.form-group input.invalid,
.form-group select.invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
    animation: shake 0.5s ease-in-out;
}

.checkbox-group.invalid {
    border: 1px solid #dc3545;
    background-color: #fff8f8;
    padding: 10px;
    border-radius: 6px;
    animation: shake 0.5s ease-in-out;
}

.other-input-container.invalid input {
    border-color: #dc3545;
    background-color: #fff8f8;
    animation: shake 0.5s ease-in-out;
}

.radio-group.invalid {
    border: 1px solid #dc3545;
    background-color: #fff8f8;
    padding: 10px;
    border-radius: 6px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Welcome Section Styles */
.welcome-section {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.welcome-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
    font-size: 18px;
}

.welcome-content p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .welcome-section {
        padding: 0 15px;
        margin: 30px auto;
    }

    .welcome-content {
        padding: 30px;
    }

    .welcome-content p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .welcome-section {
        padding: 0 10px;
        margin: 20px auto;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-content p {
        font-size: 15px;
    }
}
