* {
    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: url('pickleball assets/main-background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.content-wrapper {
    padding-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(102, 126, 234, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 200px;
    width: auto;
    margin-left: -40px;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 280px;
    margin-right: 25%;
}

.main-content.mirrored {
    margin-top: 80px;
    margin-right: 0;
    margin-left: 25%;
}

.image-circle {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 18px;
    border-radius: 50%;
    margin-right: -10.5rem;
    z-index: 10;
    position: relative;
}

.circle-image {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    border: 9px solid #4CAF50;
    box-shadow: 0 6px 22px rgba(76, 175, 80, 0.3);
}

.main-title {
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 1.35rem 3rem 1.5rem 12rem;
    border-radius: 15px;
    display: inline-block;
}

.main-content.mirrored .main-title {
    padding: 1.35rem 12rem 1.5rem 3rem;
}

.main-content.mirrored .image-circle {
    margin-left: -10.5rem;
    margin-right: 0;
}

.main-title h1 {
    color: #4a5568;
    font-size: 3.75rem;
    font-weight: 600;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin: 0 0 0.75rem 0;
}

.subtitle {
    color: #4a5568;
    font-size: 2.25rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.2);
}

.header-buttons {
    display: flex;
    gap: 1rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.contact-btn {
    background: #8a5bb8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 91, 184, 0.4);
    background: #9d6dcc;
}

.join-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.signin-btn {
    background: #8a5bb8;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 91, 184, 0.4);
    background: #9d6dcc;
}

.join-btn:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.join-btn:active {
    transform: translate(-50%, -50%) translateY(0);
}

.faq-section {
    margin-top: 100px;
    padding: 60px 0 20px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-container h2 {
    text-align: center;
    color: #4a5568;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.85);
    padding: 1rem 2rem;
    border-radius: 15px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle {
    color: #4CAF50;
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Final Call to Action Section */
.final-cta-section {
    padding: 80px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 0px;
}

.final-cta-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.final-cta-container h2 {
    color: #8a5bb8;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.final-cta-container p {
    color: #8a5bb8;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.final-cta-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.final-cta-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.final-cta-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: #4a5568;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #667eea;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(247, 250, 252, 0.8);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: white;
    color: #4a5568;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.character-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4a5568;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    position: relative;
    background: rgba(247, 250, 252, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8a5bb8;
    border-color: #8a5bb8;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    display: block;
}

.checkbox-label:hover .checkmark {
    border-color: #8a5bb8;
    background: rgba(102, 126, 234, 0.1);
}

.btn-waitlist {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
}

.btn-waitlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.waitlist-newsletter {
    margin-top: 9px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.btn-cancel {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.btn-submit {
    background: #8a5bb8;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form .error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

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

.contact-form .success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(240, 255, 244, 0.9);
    border: 2px solid #68d391;
    border-radius: 15px;
    color: #2f855a;
}

.contact-form .success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2f855a;
}

.membership-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

.membership-submit:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

.availability-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(247, 250, 252, 0.9);
    border: 2px solid #e2e8f0;
}

.availability-loading {
    display: flex;
    align-items: center;
    color: #667eea;
    font-weight: 500;
}

.loading-text {
    margin-left: 0.5rem;
}

.loading-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #667eea;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 #667eea, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #667eea, .5em 0 0 #667eea;
    }
}

.availability-message {
    display: none;
    margin-top: 1rem;
}

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

.waitlist-message {
    color: #f56565;
    font-weight: 600;
    padding: 1rem;
    background: rgba(254, 215, 215, 0.8);
    border: 2px solid #feb2b2;
    border-radius: 10px;
    text-align: center;
}

.available-message {
    color: #38a169;
    font-weight: 600;
    padding: 1rem;
    background: rgba(240, 255, 244, 0.8);
    border: 2px solid #9ae6b4;
    border-radius: 10px;
    text-align: center;
}

.btn-close {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 1rem;
    margin-top: 100px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #4a5568;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    color: #718096;
    font-size: 1.1rem;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

input {
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e53e3e;
    background: #fed7d7;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

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

.submit-btn {
    background: #8a5bb8;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: #f0fff4;
    border: 2px solid #68d391;
    border-radius: 8px;
    color: #2f855a;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    input, .submit-btn {
        padding: 0.75rem;
    }
}