/* ============================================
   Bağış Formu Stilleri — Premium Design
   ============================================ */

/* Sayfa başlığı ortalama */
.page-id-692 .page-header h1,
.page-id-692 .entry-title,
.page-id-692 .hestia-title,
.page-id-692 .title,
.page-id-692 h1 {
    text-align: center !important;
}

/* Hestia tema: col-md-8 + offset-2 kısıtlamasını kaldır */
body.page-id-692 .blog-post .container .section-text .row .col-md-8.page-content-wrap {
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 20px !important;
}

body.page-id-692 .blog-post .container {
    max-width: 1200px !important;
    width: 100% !important;
}

/* Wrapper */
#vb-donation-wrapper {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Two Column Layout ---- */
.vb-two-col {
    display: flex !important;
    flex-direction: row !important;
    gap: 36px !important;
    align-items: flex-start !important;
}

.vb-col-image {
    flex: 0 0 300px !important;
    width: 300px !important;
    position: sticky;
    top: 100px;
}

.vb-col-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: block !important;
    transition: transform 0.3s ease;
}

.vb-col-image img:hover {
    transform: scale(1.02);
}

.vb-col-form {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #e8ecf1;
}

@media (max-width: 768px) {
    .vb-two-col {
        flex-direction: column !important;
    }
    .vb-col-image {
        flex: none !important;
        width: 100% !important;
        max-width: 280px !important;
        position: static;
        margin: 0 auto 24px;
    }
    .vb-col-form {
        padding: 24px 16px;
    }
}

/* ---- Form Header ---- */
.vb-form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.vb-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
}

.vb-form-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* ---- Field Groups ---- */
.vb-field-group {
    margin-bottom: 18px;
}

.vb-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vb-required {
    color: #ef4444;
}

.vb-field-group input[type="text"],
.vb-field-group input[type="email"],
.vb-field-group input[type="tel"],
.vb-field-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.vb-field-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #94a3b8 !important;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f1f5f9 !important;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    min-height: 80px;
    resize: vertical;
}

.vb-field-group input:focus,
.vb-field-group textarea:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.vb-field-group input.vb-invalid,
.vb-field-group textarea.vb-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Fields Grid (2 columns) */
.vb-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 600px) {
    .vb-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Amount Buttons ---- */
.vb-amount-options {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vb-amount-btn {
    flex: 1;
    min-width: 70px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.vb-amount-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.vb-amount-btn.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* ---- Selected Amount Display ---- */
.vb-selected-amount {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    animation: vbSlideIn 0.3s ease;
}

@keyframes vbSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vb-selected-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.vb-selected-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* ---- Contracts ---- */
.vb-contracts {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
}

.vb-contracts h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.vb-contract-item {
    margin-bottom: 10px;
}

.vb-contract-item:last-child {
    margin-bottom: 0;
}

.vb-contract-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px !important;
    color: #475569;
    cursor: pointer;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.5;
}

.vb-contract-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    flex-shrink: 0;
    margin-top: 1px;
}

.vb-contract-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600 !important;
    cursor: pointer;
}

.vb-contract-link:hover {
    color: #1d4ed8;
}

/* ---- Error ---- */
.vb-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #991b1b;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ---- Buttons ---- */
.vb-form-actions {
    text-align: center;
    margin-top: 24px;
}

.vb-btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    text-decoration: none;
}

.vb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.5);
}

.vb-btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vb-btn-secondary:hover {
    background: #e2e8f0;
}

/* ---- PayTR Container ---- */
#vb-paytr-container {
    min-height: 400px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

#vb-paytr-container iframe {
    width: 100%;
    border: none;
}

/* ---- Result Pages ---- */
.vb-result {
    text-align: center;
    padding: 60px 20px;
}

.vb-result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.vb-result h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.vb-result p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px;
}

.vb-result .vb-btn-primary {
    margin-top: 24px;
}

.vb-result-success h2 { color: #059669; }
.vb-result-fail h2 { color: #dc2626; }

/* ---- Modal ---- */
.vb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vb-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.vb-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vbModalIn 0.3s ease;
}

@keyframes vbModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.vb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.vb-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding-right: 16px;
}

.vb-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vb-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.vb-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.vb-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* ---- Header Donate Button ---- */
.vb-header-donate-btn {
    display: inline-block !important;
    padding: 8px 24px !important;
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4) !important;
    margin-left: 8px !important;
    line-height: 1.5 !important;
    animation: vbPulse 2s infinite !important;
}

.vb-header-donate-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.5) !important;
    color: #fff !important;
    animation: none !important;
}

@keyframes vbPulse {
    0% { box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(5, 150, 105, 0.6); }
    100% { box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4); }
}
