body {
    background-color: #f0f0f0;
    color: #505d50;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    text-transform: lowercase;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
}

a {
    color: #505d50;
}

.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-screen.hidden {
    display: none;
}

.password-screen form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.password-screen input {
    padding: 10px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    border: 2px solid #505d50;
    background-color: #fff;
    color: #505d50;
    text-align: center;
    outline: none;
}

.password-screen input:focus {
    border-color: #7a957a;
}

.password-screen button {
    padding: 10px 30px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    background-color: #505d50;
    color: #f0f0f0;
    border: none;
    cursor: pointer;
    text-transform: lowercase;
}

.password-screen button:hover {
    background-color: #7a957a;
}

.password-screen .error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.main-screen {
    display: none;
}

.main-screen.visible {
    display: block;
}

hr {
    width: 50%;
    margin: 0 auto;
}

.rsvp-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.rsvp-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.party-members {
    margin-bottom: 20px;
}

.party-member {
    background-color: #fff;
    border: 2px solid #505d50;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.party-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.name-fields {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.party-member-first-name,
.party-member-last-name {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    border: 1px solid #505d50;
    background-color: #fff;
    color: #505d50;
    outline: none;
}

.party-member-first-name:focus,
.party-member-last-name:focus {
    border-color: #7a957a;
}

.party-member-first-name:invalid:not(:placeholder-shown),
.party-member-last-name:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

.email-field {
    width: 100%;
}

.party-member-email {
    width: 100%;
    padding: 8px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    border: 1px solid #505d50;
    background-color: #fff;
    color: #505d50;
    outline: none;
    box-sizing: border-box;
}

.party-member-email:focus {
    border-color: #7a957a;
}

.party-member-email:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

.remove-member-link-btn {
    background: none;
    border: none;
    color: #505d50;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    cursor: pointer;
    text-transform: lowercase;
    padding: 0;
}

.remove-member-link-btn:hover {
    color: #7a957a;
}

.remove-member-btn {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    cursor: pointer;
    text-transform: lowercase;
    flex-shrink: 1;
    min-width: fit-content;
}

.remove-member-btn:hover {
    background-color: #b71c1c;
}

@media (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-party-btn {
        width: 100%;
    }
    
    .search-result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .load-party-btn {
        width: 100%;
    }
    
    .party-member-header {
        flex-wrap: wrap;
    }
    
    .name-fields {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .remove-member-btn {
        width: 100%;
        padding: 8px 12px;
    }
}

.attendance-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.attendance-option {
    position: relative;
    flex: 1 1 200px;
}

.attendance-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.attendance-option label {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: 2px solid #505d50;
    background-color: #fff;
    color: #505d50;
    transition: all 0.2s ease;
    font-family: 'Courier New', Courier, monospace;
    text-transform: lowercase;
}

.attendance-option label:hover {
    background-color: #f0f0f0;
    border-color: #7a957a;
}

.attendance-option input[type="radio"]:checked + label {
    background-color: #505d50;
    color: #fff;
    border-color: #505d50;
}

.attendance-option input[type="radio"]:focus + label {
    outline: 2px solid #7a957a;
    outline-offset: 2px;
}

.add-member-btn {
    background-color: #505d50;
    color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    cursor: pointer;
    text-transform: lowercase;
    margin-bottom: 30px;
    width: 100%;
}

.add-member-btn:hover {
    background-color: #7a957a;
}

.form-section {
    margin-bottom: 25px;
    text-align: left;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-section textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 2px solid #505d50;
    background-color: #fff;
    color: #505d50;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.form-section textarea:focus {
    border-color: #7a957a;
}

.submit-btn {
    background-color: #505d50;
    color: #f0f0f0;
    border: none;
    padding: 12px 40px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    cursor: pointer;
    text-transform: lowercase;
    width: 100%;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #7a957a;
}

.rsvp-message {
    margin-top: 15px;
    min-height: 25px;
    font-size: 14px;
}

.rsvp-message.success {
    color: #2e7d32;
}

.rsvp-message.error {
    color: #d32f2f;
}

.rsvp-scroll-btn {
    background-color: #505d50;
    color: #f0f0f0;
    border: none;
    padding: 8px 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    cursor: pointer;
    text-transform: lowercase;
    margin-top: 15px;
    transition: background-color 0.2s ease;
}

.rsvp-scroll-btn:hover {
    background-color: #7a957a;
}

.faq-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.faq-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #fff;
    border: 2px solid #505d50;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background-color: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    color: #505d50;
    text-transform: lowercase;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question span:first-child {
    flex: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 20px;
    font-weight: normal;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.faq-item[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 500px;
    padding: 0 20px 15px 20px;
}

.faq-answer p {
    margin: 0;
    padding-top: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #505d50;
    text-align: left;
    line-height: 1.6;
}

.venue-address-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.venue-address-text {
    font-family: 'Courier New', Courier, monospace;
    color: #505d50;
}

.copy-address-btn,
.directions-btn {
    background-color: #505d50;
    color: #f0f0f0;
    border: none;
    padding: 4px 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    cursor: pointer;
    text-transform: lowercase;
    transition: background-color 0.2s ease;
}

.copy-address-btn:hover,
.directions-btn:hover {
    background-color: #7a957a;
}