/* AMP Marketing Intelligence - Main Stylesheet */
/* Color Palette: Church's Texas Chicken Black (#000000), White (#FFFFFF), Yellow (#F79C18) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header */
header {
    background-color: #000000;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 50px;
    width: auto;
}

.text-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #F79C18;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #F79C18;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 60%, #F79C18 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero .hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #f5f5f5;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #F79C18;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Form Section */
.form-section {
    padding: 4rem 0;
    background-color: #fff;
}

.form-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 5px solid #000000;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F79C18;
    box-shadow: 0 0 0 3px rgba(247, 156, 24, 0.15);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Locked brand badge */
.brand-locked {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #F79C18;
    min-height: 80px;
}

.brand-text-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #F79C18;
    letter-spacing: 1.5px;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.35);
    text-transform: uppercase;
}

.brand-logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-locked span.brand-dot {
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #F79C18;
}

.submit-btn:hover {
    background-color: #F79C18;
    color: #000000;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Thank You Message - PROMINENT VERSION */
.thank-you-message {
    max-width: 900px;
    margin: 3rem auto;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
    padding: 4rem 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 3px solid #000000;
    animation: slideDown 0.6s ease-out;
}

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

.success-icon {
    width: 120px;
    height: 120px;
    background-color: #F79C18;
    color: #000000;
    font-size: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out 0.2s both;
    box-shadow: 0 8px 20px rgba(247, 156, 24, 0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.thank-you-message h3 {
    color: #000000;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.thank-you-message p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.thank-you-message a {
    color: #F79C18;
    text-decoration: none;
    font-weight: 600;
}

.thank-you-message a:hover {
    text-decoration: underline;
}

.new-request-btn {
    margin-top: 2.5rem;
    padding: 1rem 3rem;
    background-color: #000000;
    color: white;
    border: 2px solid #F79C18;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-request-btn:hover {
    background-color: #F79C18;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 156, 24, 0.4);
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #F79C18;
}

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

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .features h2,
    .form-section h2 {
        font-size: 2rem;
    }

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

    form {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    /* Thank You Message - Mobile */
    .thank-you-message {
        margin: 2rem auto;
        padding: 2.5rem 1.5rem;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 3.5rem;
    }

    .thank-you-message h3 {
        font-size: 2rem;
    }

    .thank-you-message p {
        font-size: 1.1rem;
    }

    .new-request-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Mapbox Autocomplete Styles */
.pac-container {
    z-index: 10000 !important;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.pac-item:hover {
    background-color: #fffbf2;
}

.pac-item-query {
    font-weight: 600;
    color: #000000;
}

#locationAddress {
    position: relative;
    z-index: 1;
}

input.pac-target-input {
    outline: none !important;
}

input.pac-target-input:focus {
    outline: 2px solid #F79C18 !important;
    outline-offset: 0;
}

/* ── Request Type Toggle ───────────────────────────────────── */
.request-type-toggle {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #000000;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    background: #fff;
    color: #000000;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.2px;
}

.toggle-btn:first-child {
    border-right: 1px solid #000000;
}

.toggle-btn.active {
    background: #000000;
    color: #fff;
}

.toggle-btn:not(.active):hover {
    background: #f5f5f5;
}

/* DMA mode — give dma-related fields a subtle amber-tinted left border */
#dmaNameGroup,
#dmaLocationsGroup {
    border-left: 3px solid #F79C18;
    padding-left: 0.75rem;
}

/* Event sub-fields — unified sub-box */
.event-dates-box {
    background: #fffbf2;
    border: 2px solid #F79C18;
    border-radius: 8px;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(247, 156, 24, 0.12);
    animation: fadeInDown 0.25s ease;
}

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

.event-dates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f0d9a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-dates-icon {
    font-size: 1.1rem;
}

.event-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.event-date-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
}

.required-star {
    color: #F79C18;
    font-weight: 900;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input[type="date"] {
    width: 100%;
    padding: 0.65rem 2.2rem 0.65rem 0.75rem;
    border: 2px solid #e8c97a;
    border-radius: 5px;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.date-input-wrapper input[type="date"]:focus {
    outline: none;
    border-color: #F79C18;
    box-shadow: 0 0 0 3px rgba(247, 156, 24, 0.18);
}

.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.date-icon {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
}

.event-dates-box textarea,
.event-dates-box input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e8c97a;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.event-dates-box textarea:focus,
.event-dates-box input[type="text"]:focus {
    outline: none;
    border-color: #F79C18;
    box-shadow: 0 0 0 3px rgba(247, 156, 24, 0.18);
}

.event-dates-box textarea {
    min-height: 100px;
}

@media (max-width: 600px) {
    .event-dates-grid {
        grid-template-columns: 1fr;
    }
}
