/* Vendor Page Styles for Get To Gather Festival */
/* Imports main Woodstock styles and adds vendor-specific customizations */

@import url("../styles.css");

/* Vendor-specific color palette additions */
:root {
    --vendor-primary: #8b4513; /* Saddle brown for vendor theme */
    --vendor-secondary: #deb887; /* Burlywood accent */
    --vendor-highlight: #ff8c00; /* Dark orange for special callouts */
    --vendor-success: #228b22; /* Forest green for success states */
    --vendor-warning: #b8860b; /* Dark goldenrod for warnings */
}

/* Vendor Hero Section */
.vendor-hero {
    background: linear-gradient(
        135deg,
        var(--vendor-primary) 0%,
        #a35c3b 50%,
        var(--vendor-secondary) 100%
    );
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: #ffffff;
}

.vendor-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="vendor-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="3" fill="%23FF8C00" opacity="0.1"/><rect x="5" y="5" width="10" height="10" fill="none" stroke="%23DEB887" stroke-width="0.5" opacity="0.15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23vendor-pattern)"/></svg>')
        repeat;
    opacity: 0.4;
}

.vendor-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.vendor-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
}

.vendor-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 2rem;
    color: var(--vendor-highlight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Vendor Benefits Grid */
.vendor-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.vendor-benefit-card {
    background: linear-gradient(145deg, #fff6e5, #f5f0e0);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--vendor-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vendor-benefit-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        var(--vendor-highlight) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vendor-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    border-color: var(--vendor-primary);
}

.vendor-benefit-card:hover::before {
    opacity: 0.05;
}

.vendor-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.vendor-benefit-card h3 {
    color: var(--vendor-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.vendor-benefit-card p {
    color: #3b2f2f;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Guidelines Section */
.guidelines-section {
    background: linear-gradient(
        45deg,
        #c1c5a9 0%,
        var(--vendor-secondary) 100%
    );
    padding: 4rem 0;
    margin: 4rem 0;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guideline-card {
    background-color: rgba(255, 246, 229, 0.95);
    border-radius: 15px;
    padding: 2rem;
    border-left: 6px solid var(--vendor-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateX(10px);
    border-left-color: var(--vendor-highlight);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.guideline-card h4 {
    color: var(--vendor-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guideline-card ul {
    list-style: disc;
    padding: 0 0 0 1.2rem;
}

.guideline-card li {
    color: #3b2f2f;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Fee Structure */
.fee-section {
    background-color: var(--vendor-warning);
    color: #ffffff;
    padding: 3rem 0;
    margin: 3rem 0;
    text-align: center;
}

.fee-card {
    background-color: rgba(255, 246, 229, 0.95);
    color: #3b2f2f;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.fee-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--vendor-primary);
    font-family: "Love Ya Like A Sister", cursive;
    display: block;
    margin-bottom: 1rem;
}

.fee-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fee-note {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--vendor-primary);
    font-weight: 500;
}

/* Application Form */
.application-section {
    background-color: var(--vendor-primary);
    color: #fff6e5;
    padding: 4rem 0;
    margin: 4rem 0 0 0;
}

/* Container (reuses placeholder card styling) */
.application-form-placeholder {
    background-color: rgba(255, 246, 229, 0.95);
    color: #3b2f2f;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

/* Form controls */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--vendor-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--vendor-secondary);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vendor-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background-color: #fffef7;
}

.form-group small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.application-form select {
    cursor: pointer;
}

/* Fieldset and legend */
.application-form fieldset {
    border: 2px solid var(--vendor-secondary);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: rgba(222, 184, 135, 0.1);
}

.application-form legend {
    font-weight: 700;
    color: var(--vendor-primary);
    padding: 0 1rem;
    font-size: 1.1rem;
}

/* Submit button */
.submit-btn {
    background: linear-gradient(135deg, var(--vendor-primary), #a35c3b);
    color: #ffffff;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 2rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #a0522d, var(--vendor-primary));
}

.application-form button:disabled,
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #999 !important;
}

.submit-btn.loading {
    background: linear-gradient(135deg, #999, #666);
    cursor: not-allowed;
}

.submit-btn.loading:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Error message box */
#error-message {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

#error-message strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Honeypot field - fully hidden */
.application-form input[name="honeypot_field"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
}

/* Form preview (legacy placeholder card) */
.form-preview {
    background-color: rgba(193, 197, 169, 0.3);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px dashed var(--vendor-secondary);
    margin-top: 2rem;
}

.form-preview h4 {
    color: var(--vendor-primary);
    margin-bottom: 1rem;
}

.form-preview ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
    list-style: disc;
    padding-left: 1.2rem;
}

.form-preview li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Mobile form improvements (tablets and small screens) */
@media (max-width: 768px) {
    .application-form input,
    .application-form select,
    .application-form textarea {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
        min-height: 50px;
    }

    .application-form textarea {
        min-height: 120px;
    }

    .application-form label {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

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

    .application-form fieldset {
        padding: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .application-form legend {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .form-group small {
        font-size: 1rem;
        margin-top: 0.75rem;
    }

    .submit-btn {
        padding: 1.5rem 2rem;
        font-size: 1.3rem;
        min-height: 60px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .application-form fieldset {
        padding: 1.5rem 1rem;
    }

    .application-form legend {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .application-form input,
    .application-form select,
    .application-form textarea {
        padding: 1.5rem 1rem;
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 3rem;
    }
}

/* Contact Section */
.vendor-contact-section {
    background-color: #a35c3b;
    color: #fff6e5;
    padding: 3rem 0;
    margin: 0;
}

.vendor-contact-section h2 {
    color: #fff6e5;
    text-align: center;
    margin-bottom: 2rem;
}

.vendor-contact-card {
    background-color: rgba(255, 246, 229, 0.95);
    color: #3b2f2f;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.vendor-contact-card a {
    color: var(--vendor-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.vendor-contact-card a:hover {
    text-decoration: underline;
    color: var(--vendor-highlight);
}

/* Special Callout Boxes */
.vendor-callout {
    background: linear-gradient(135deg, var(--vendor-highlight), #ffa500);
    color: #3b2f2f;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.vendor-callout h3 {
    color: #3b2f2f;
    margin-bottom: 1rem;
}

.vendor-callout p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vendor-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .vendor-benefits-grid,
    .guidelines-grid {
        grid-template-columns: 1fr;
    }

    .vendor-hero-content {
        padding: 1rem;
    }

    .guideline-card,
    .vendor-benefit-card {
        padding: 1.5rem;
    }

    .application-form-placeholder {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .vendor-benefit-card,
    .guideline-card,
    .fee-card,
    .application-form-placeholder {
        padding: 1.5rem;
    }

    .fee-amount {
        font-size: 2.5rem;
    }
}

/* Accessibility improvements */
.vendor-benefit-card:focus,
.guideline-card:focus,
.vendor-contact-card a:focus {
    outline: 3px solid var(--vendor-highlight);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .vendor-hero,
    .application-section {
        background: none !important;
        color: black !important;
    }

    .vendor-benefit-card,
    .guideline-card,
    .fee-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}
