/* Base Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: translateY(-50px) scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-family: 'Merriweather', serif;
    color: var(--dark-blue);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
}

/* Checkbox Status */
.checkbox-status {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-left: 0.5rem;
}

.checkbox-status.accepted {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Guidelines Modal Styles */
.guidelines-modal {
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 60vh;
}

.scroll-content {
    padding: 1.5rem;
}

.guideline-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.guideline-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.section-header h4 {
    font-family: 'Merriweather', serif;
    color: var(--dark-blue);
    font-size: 1.3rem;
    margin: 0;
}

.subsection h5 {
    font-family: 'Merriweather', serif;
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.subsection h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-blue);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.subsection p {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.subsection ul {
    font-family: 'Lora', serif;
    line-height: 1.5;
    color: #333;
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.subsection li {
    margin-bottom: 0.3rem;
}

.content-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.content-type {
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid;
    font-size: 0.9rem;
}

.content-type.allowed {
    background: #f0f9ff;
    border-color: #22c55e;
}

.content-type.restricted {
    background: #fef2f2;
    border-color: #ef4444;
}

.content-type ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.highlight {
    background: #fff3cd;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-box {
    background: var(--beige-white);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box ul {
    margin: 0.3rem 0 0 0;
}

.scroll-indicator {
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), #45a049);
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 1rem;
}

.scroll-indicator p {
    margin: 0 0 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.scroll-progress {
    background: rgba(255,255,255,0.3);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.scroll-progress-bar {
    background: white;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.close-guidelines-btn {
    width: 100%;
    background: #ccc;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.close-guidelines-btn.enabled {
    background: var(--secondary-color);
    cursor: pointer;
}

.close-guidelines-btn.enabled:hover {
    background: #45a049;
}

/* Signup Form Styles */
.signup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.signup-hero {
    text-align: center;
}

.signup-hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.signup-tagline {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.signup-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.guidelines-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.guidelines-box {
    margin-bottom: 1.5rem;
}

.guidelines-box h3 {
    font-family: 'Merriweather', serif;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.guidelines-box p {
    font-family: 'Lora', serif;
    color: #666;
    margin-bottom: 1rem;
}

.guidelines-link {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guidelines-link:hover {
    background: #45a049;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.signup-button {
    width: 100%;
    background: #ccc;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.signup-button:not(:disabled) {
    background: var(--secondary-color);
    cursor: pointer;
}

.signup-button:not(:disabled):hover {
    background: #45a049;
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-link p {
    font-family: 'Lora', serif;
    color: #666;
}

.login-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .guidelines-modal {
        max-height: 90vh;
        margin: 1rem;
    }
    
    .content-types {
        grid-template-columns: 1fr;
    }
    
    .scroll-content {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .section-icon {
        margin-right: 0;
    }

    .signup-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .signup-hero h1 {
        font-size: 2rem;
    }

    .signup-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .guidelines-modal {
        margin: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .section-header h4 {
        font-size: 1.1rem;
    }
    
    .subsection h5 {
        font-size: 1rem;
    }

    .signup-hero h1 {
        font-size: 1.8rem;
    }

    .signup-tagline {
        font-size: 1rem;
    }

    .signup-form-container {
        padding: 1rem;
    }
}
