/* ========================================
   HEADER COM MODAL - CSS COMPLETO FINAL
======================================== */

/* HEADER PRINCIPAL */
.ancaq-main-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

.ancaq-main-header.ancaq-header-scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    padding-top: 90px;
}

.ancaq-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ancaq-header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.ancaq-header-nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.ancaq-nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.ancaq-nav-link:hover {
    color: #FF69B4;
}

.ancaq-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF69B4;
    transition: width 0.3s ease;
}

.ancaq-nav-link:hover::after {
    width: 100%;
}

.ancaq-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ancaq-header-btn-inscricao {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.ancaq-header-btn-inscricao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

/* BOTÃO DARK MODE */
.ancaq-theme-toggle-btn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.ancaq-theme-toggle-btn:hover {
    background: #FF69B4;
    border-color: #FF69B4;
}

.ancaq-sun-icon,
.ancaq-moon-icon {
    position: absolute;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.ancaq-sun-icon {
    opacity: 1;
    transform: rotate(0);
}

.ancaq-moon-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.ancaq-theme-toggle-btn:hover .ancaq-sun-icon,
.ancaq-theme-toggle-btn:hover .ancaq-moon-icon {
    color: white;
}

/* DARK MODE (SÓ HEADER) */
.ancaq-main-header.ancaq-dark-header {
    background: #1f1f1f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ancaq-main-header.ancaq-dark-header.ancaq-header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.ancaq-main-header.ancaq-dark-header .ancaq-nav-link {
    color: #e0e0e0;
}

.ancaq-main-header.ancaq-dark-header .ancaq-nav-link:hover {
    color: #FF69B4;
}

.ancaq-main-header.ancaq-dark-header .ancaq-theme-toggle-btn {
    background: #333;
    border-color: #555;
}

.ancaq-main-header.ancaq-dark-header .ancaq-sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

.ancaq-main-header.ancaq-dark-header .ancaq-moon-icon {
    opacity: 1;
    transform: rotate(0);
    color: #e0e0e0;
}

/* MODAL */
.ancaq-inscricao-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.ancaq-inscricao-modal.ancaq-modal-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ancaq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ancaq-modal-wrapper {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 750px;
    animation: ancaqSlideDown 0.4s ease;
}

@keyframes ancaqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ancaq-modal-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.ancaq-modal-header-box {
    background: #ffffff;
    color: #333;
    padding: 25px 30px;
    position: relative;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.ancaq-modal-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: #333;
}

.ancaq-highlight-text {
    color: #c2247c;
}

.ancaq-highlight-purple {
    color: #c2247c;
}

.ancaq-modal-subtitle {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
    color: #666;
}

.ancaq-modal-close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #f5f5f5;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.ancaq-modal-close-btn:hover {
    background: #FF69B4;
    color: white;
    transform: rotate(90deg);
}

.ancaq-modal-scroll-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 120px);
    padding: 0;
}

.ancaq-modal-scroll-content::-webkit-scrollbar {
    width: 8px;
}

.ancaq-modal-scroll-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ancaq-modal-scroll-content::-webkit-scrollbar-thumb {
    background: #c2247c;
    border-radius: 10px;
}

.ancaq-modal-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* FORMULÁRIO */
.ancaq-inscricao-form {
    padding: 30px;
    background: #ffffff;
}

.ancaq-form-section {
    margin-bottom: 30px;
}

.ancaq-section-title {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ancaq-section-icon {
    font-size: 18px;
    color: #c2247c;
    width: 20px;
    text-align: center;
}

.ancaq-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ancaq-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.ancaq-field-label {
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.ancaq-field-input {
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.ancaq-field-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ancaq-field-input::placeholder {
    color: #aaa;
}

textarea.ancaq-field-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

select.ancaq-field-input {
    cursor: pointer;
}

.ancaq-error-msg {
    color: #ff4444;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.ancaq-form-field.ancaq-has-error .ancaq-field-input {
    border-color: #ff4444;
    background: #fff5f5;
}

.ancaq-form-field.ancaq-has-error .ancaq-error-msg {
    display: block;
}

.ancaq-checkbox-field {
    margin: 30px 0;
}

.ancaq-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ancaq-checkbox-input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.ancaq-checkbox-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ancaq-link-text {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ancaq-link-text:hover {
    color: #FF69B4;
}

.ancaq-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    margin-top: 10px;
}

.ancaq-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.ancaq-btn-icon {
    font-size: 16px;
}

.ancaq-submit-btn.ancaq-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.ancaq-submit-btn.ancaq-btn-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ancaqSpin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes ancaqSpin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ancaq-header-nav {
        display: none;
    }
    
    body {
        padding-top: 85px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .ancaq-main-header {
        padding: 15px 0;
    }
    
    .ancaq-form-row {
        grid-template-columns: 1fr;
    }
    
    .ancaq-modal-wrapper {
        max-width: 95%;
    }
    
    .ancaq-header-btn-inscricao {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ancaq-theme-toggle-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }
    
    .ancaq-header-logo img {
        height: 40px;
    }
    
    .ancaq-header-btn-inscricao {
        padding: 8px 16px;
        font-size: 13px;
    }
}