/* Modern Dark Form Tasarımı v3.0 - Optimize Edilmiş */

/* --- Ana Form Konteyneri --- */
.boe-form {
    background: transparent;
    padding: 40px;
    max-width: none !important;
    width: 100% !important;
    min-width: 320px;
    margin: 20px auto;
    position: relative;
    box-sizing: border-box;
}

/* Container kuralları - tüm tema yapıları için */
.wp-block-group .boe-form,
.gspb_container .boe-form,
div[class*="container"] .boe-form,
[class*="wrapper"] .boe-form,
[class*="content"] .boe-form,
.wp-block .boe-form {
    max-width: none !important;
    width: 100% !important;
}

/* --- Form Başlığı --- */
.boe-form h2, .boe-form h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Mesaj Alanları --- */
#boe-form-messages {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    max-width: none !important;
    width: 100% !important;
    display: none;
    position: relative;
    box-sizing: border-box;
}

#boe-form-messages.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

#boe-form-messages.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

/* --- Form Grupları --- */
.boe-form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.boe-form-row {
    display: flex;
    gap: 25px;
}

.boe-form-group.half {
    flex: 1;
    min-width: 0;
}

/* --- Etiketler --- */
.boe-form label,
.boe-form .radio-group p {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* --- Input Alanları --- */
.boe-form input[type="text"],
.boe-form input[type="email"],
.boe-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Placeholder Stilleri --- */
.boe-form input::placeholder,
.boe-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    font-weight: 400;
}

/* --- Focus Durumu --- */
.boe-form input[type="text"]:focus,
.boe-form input[type="email"]:focus,
.boe-form textarea:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Textarea Özel Stilleri --- */
.boe-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.4;
}

/* --- Radio ve Checkbox Grupları --- */
.boe-form .radio-group,
.boe-form .checkbox-group {
    margin-top: 12px;
}

.boe-form .radio-group label,
.boe-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: none;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.boe-form .radio-group label:hover,
.boe-form .checkbox-group label:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.boe-form input[type="radio"],
.boe-form input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

/* --- Submit Butonu --- */
.boe-submit-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 18px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 16px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button hover effect */
.boe-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.boe-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(16, 185, 129, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.boe-submit-button:hover:not(:disabled)::before {
    left: 100%;
}

.boe-submit-button:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.boe-submit-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Loading State --- */
.boe-submit-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.boe-submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* --- Responsive Tasarım --- */
@media (max-width: 768px), screen and (max-device-width: 768px) {
    .boe-form {
        margin: 20px auto !important;
        padding: 25px !important;
        width: 90% !important;
        max-width: 500px !important;
        min-width: 280px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .boe-form h2, .boe-form h3 {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    .boe-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .boe-form-group,
    .boe-form-group.half {
        margin-bottom: 18px !important;
        width: 100% !important;
        flex: none !important;
    }
    
    .boe-form input[type="text"],
    .boe-form input[type="email"],
    .boe-form textarea {
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
    }
    
    .boe-form input[type="text"]:focus,
    .boe-form input[type="email"]:focus,
    .boe-form textarea:focus {
        background: rgba(255, 255, 255, 0.18) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
    }
    
    .boe-submit-button {
        padding: 16px 24px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        margin-top: 10px !important;
    }
    
    .boe-form label,
    .boe-form .radio-group p {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        text-align: left !important;
    }
    
    .boe-form .radio-group label,
    .boe-form .checkbox-group label {
        font-size: 14px !important;
        padding: 10px 8px !important;
        margin-bottom: 12px !important;
        border-radius: 8px !important;
    }
    
    .boe-form .radio-group,
    .boe-form .checkbox-group {
        margin-top: 8px !important;
    }
    
    .cf-turnstile {
        display: flex !important;
        justify-content: center !important;
        margin: 10px 0 !important;
    }
}

@media (max-width: 480px) {
    .boe-form {
        margin: 15px auto !important;
        padding: 20px !important;
        width: 95% !important;
        max-width: 400px !important;
    }
    
    .boe-form input[type="text"],
    .boe-form input[type="email"],
    .boe-form textarea {
        padding: 12px 14px !important;
        font-size: 16px !important;
    }
    
    .boe-submit-button {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
    
    .boe-form-group {
        margin-bottom: 16px !important;
    }
}

/* --- Animasyonlar --- */
.boe-form-group:nth-child(1) { animation-delay: 0.1s; }
.boe-form-group:nth-child(2) { animation-delay: 0.2s; }
.boe-form-group:nth-child(3) { animation-delay: 0.3s; }
.boe-form-group:nth-child(4) { animation-delay: 0.4s; }
.boe-form-group:nth-child(5) { animation-delay: 0.5s; }
.boe-form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Accessibility --- */
.boe-form input:focus,
.boe-form textarea:focus,
.boe-submit-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



.boe-newsletter-form {
    background-color: #e0f5e0; /* Açık yeşil arka plan */
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.boe-newsletter-form .newsletter-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
    color: #000;
}

.boe-newsletter-form h2 {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px 0;
}

.boe-newsletter-form p {
    font-size: 18px;
    color: #333;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.boe-newsletter-form .newsletter-fields {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.boe-newsletter-form .newsletter-fields .boe-form-group {
    flex: 1;
    margin: 0;
}

.boe-newsletter-form input[type="email"],
.boe-newsletter-form input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.boe-newsletter-form .interests-group {
    text-align: left;
}

.boe-newsletter-form .interests-group > label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
}

.boe-newsletter-form .interests-checkboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
    margin-bottom: 25px;
}

.boe-newsletter-form .interests-checkboxes label {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.boe-newsletter-form .interests-checkboxes input[type="checkbox"] {
    margin-right: 8px;
}

.boe-newsletter-form .newsletter-button {
    background: #000;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    padding: 16px 30px;
    font-size: 18px;
}

.boe-newsletter-form .newsletter-button:hover:not(:disabled) {
    background: #333;
    transform: none;
    box-shadow: none;
}

.boe-newsletter-form .privacy-notice {
    font-size: 14px;
    color: #555;
    margin-top: 20px;
}

.boe-newsletter-form .privacy-notice a {
    color: #000;
    text-decoration: underline;
}

/* Bülten formu için mesaj stilleri */
#boe-newsletter-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: none;
}
#boe-newsletter-messages.success {
    background-color: #d4edda;
    color: #155724;
}
#boe-newsletter-messages.error {
    background-color: #f8d7da;
    color: #721c24;
}

@media (max-width: 768px) {
    .boe-newsletter-form .newsletter-fields {
        flex-direction: column;
    }
}