* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #9A2A2A;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.logo {
    max-width: 45px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.byline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 10px;
    text-transform: lowercase;
}

.form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hours layout */
#hoursGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

.day-label {
    width: 140px;
    text-align: left;
    font-weight: 600;
}

.hours-primary,
.hours-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.time-sep {
    font-weight: 600;
    opacity: 0.85;
}

.hours-primary {
    margin-left: 148px;
}

.slot-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.hours-secondary {
    display: none;
    margin-left: 148px;
}

.hours-secondary.show {
    display: inline-flex;
}

input[type="time"] {
    width: 120px;
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="time"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1rem;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    background-color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    user-select: none;
}

.dropdown-selected:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown-selected.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.placeholder {
    color: #999;
    font-size: 1rem;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.selected-item {
    background: #9A2A2A;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.selected-item .remove {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.selected-item .remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-arrow {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8f8f8;
}

.dropdown-option.selected {
    background-color: #9A2A2A;
    color: white;
}

.dropdown-option.disabled {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

select:not([multiple]) {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffcccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #ff4444;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #9A2A2A;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form {
        padding: 20px;
    }

    .day-label {
        width: 100%;
        margin-bottom: 2px;
    }

    .hours-primary,
    .hours-secondary {
        margin-left: 0;
    }

    input[type="time"] {
        width: min(120px, calc((100vw - 120px) / 2));
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .byline {
        font-size: 0.9rem;
    }
    
    .logo {
        max-width: 35px;
    }
    
    input[type="text"],
    select,
    textarea {
        padding: 10px 12px;
    }
    
    .dropdown-selected {
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .dropdown-option {
        padding: 14px 15px;
        font-size: 1rem;
    }
    
    .dropdown-options {
        max-height: 180px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Add spacing for reCAPTCHA */
.g-recaptcha {
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .form {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .byline {
        font-size: 0.85rem;
    }
    
    .logo {
        max-width: 30px;
    }
    
    .dropdown-selected {
        padding: 8px 10px;
        min-height: 42px;
    }
    
    .dropdown-option {
        padding: 16px 15px;
        font-size: 1.1rem;
    }
    
    .dropdown-options {
        max-height: 160px;
    }
    
    .selected-item {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }

    .hours-primary,
    .hours-secondary {
        gap: 6px;
    }

    input[type="time"] {
        width: min(115px, calc((100vw - 105px) / 2));
        padding: 8px 10px;
        font-size: 0.95rem;
    }
}
