/* Contact Form 7 Styling */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form-wrapper .form-row {
    margin-bottom: 20px;
}

.contact-form-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #00277f; /* Ubah warna focus menjadi warna utama */
    box-shadow: 0 0 0 3px rgba(0, 39, 127, 0.1);
}

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

/* Submit button - Rata Kiri & Warna #00277f */
.contact-form-wrapper .submit-row {
    text-align: left; /* Rata kiri */
}

.contact-form-wrapper .custom-submit {
    background-color: #00277f; /* Warna utama yang diminta */
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form-wrapper .custom-submit:hover {
    background-color: #001c5d; /* Warna sedikit lebih gelap untuk efek hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 39, 127, 0.3); /* Sesuaikan shadow dengan warna baru */
}

/* Validation errors */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Privacy acceptance */
.contact-form-wrapper .wpcf7-list-item-label {
    font-weight: normal;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 15px;
    }
    
    .contact-form-wrapper .custom-submit {
        width: 100%;
        padding: 14px;
    }
}

/* --- NEWSLETTER FOOTER STYLE: PERBAIKAN LEBAR DAN JARAK AKHIR --- */

/* 1. Menargetkan Kontainer Form Utama CF7 */
.wpcf7-form {
    /* Memaksa elemen form mengambil lebar penuh dari kolom widget */
    width: 100% !important; 
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Menargetkan Wrapper Kustom Anda (Lebar dan Jarak) */
.newsletter-wrapper-custom {
    padding: 0 !important;
    width: 100% !important; 
    margin: 0 auto !important; 
}

/* 3. Menghilangkan Jarak Bawaan PADA SEMUA ELEMEN FORM CF7 */
/* Ini adalah langkah paling penting. */
.newsletter-wrapper-custom .wpcf7-form p,
.newsletter-wrapper-custom .wpcf7-form-control-wrap,
.newsletter-wrapper-custom input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.newsletter-wrapper-custom .newsletter-submit-btn,
.newsletter-wrapper-custom .wpcf7-list-item {
    margin: 2 !important;
    padding: 2 !important;
    line-height: 3 !important; 
}

/* 4. Kontainer Field (Menggunakan Flex dengan gap minimal untuk kekompakan) */
.newsletter-fields-wrapper {
    display: flex !important; 
    flex-direction: column !important;
    gap: 6px !important; /* Jarak antar baris field (6px) */
    margin-bottom: 5px !important; 
}

/* 5. Styling Input (Memastikan 100% Lebar dan Padding yang Ramping) */
.newsletter-fields-wrapper input[type="text"],
.newsletter-fields-wrapper input[type="email"] {
    width: 100% !important;
    padding: 10px 12px !important; 
    border: 1px solid #ddd !important;
    border-radius: 4px !important; 
    box-sizing: border-box !important;
    font-size: 14px !important; 
}

/* 6. Pemaksaan Tombol Submit */
.newsletter-submit-btn {
    width: 100% !important; 
    padding: 10px 20px !important;
    background-color: #00277f !important; 
    color: white !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    margin-top: 5px !important; 
}

/* 7. Teks Disclaimer (Warna Putih dan Ukuran Kecil) */
.newsletter-privacy-text-disclaimer {
    color: #ffffff !important; 
    font-size: 10px !important;
    margin-top: 2px !important; 
    margin-bottom: 0 !important;
}

/* 8. Checkbox Privasi */
.privacy-acceptance-wrapper .wpcf7-list-item-label {
    color: #ffffff !important; 
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
}

/* Ganti background image pada elemen .box */
.case-study-wrapper .main-box .box {
    background-image: url('https://admission.ulbi.ac.id/wp-content/uploads/2025/11/05.jpg') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* ========================================
   FIX MOBILE SIDEBAR CLOSE BUTTON
   ======================================== */

/* Reset container close button */
.offcanvas__close {
    position: relative !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Style tombol close - Normal State */
.offcanvas__close button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Icon X - Putih (normal state) */
.offcanvas__close button i.fas.fa-times,
.offcanvas__close button i.fa-times {
    font-size: 18px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: color 0.3s ease !important;
}

/* Hover State - Background Orange */
.offcanvas__close button:hover {
    background: #ea5329 !important;
    border-color: #ea5329 !important;
    transform: scale(1.05) !important;
}

/* Icon X saat hover - Tetap Putih */
.offcanvas__close button:hover i.fas.fa-times,
.offcanvas__close button:hover i.fa-times {
    color: #ffffff !important;
}

/* Active/Click State */
.offcanvas__close button:active {
    transform: scale(0.95) !important;
}

/* Focus State (untuk accessibility) */
.offcanvas__close button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* Prevent double close button */
.offcanvas__close + .offcanvas__close {
    display: none !important;
}

/* Ensure proper positioning in header */
.offcanvas__top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

/* ========================================
   RESPONSIVE - MOBILE & TABLET
   ======================================== */

/* Tablet (768px - 991px) */
@media only screen and (max-width: 991px) and (min-width: 768px) {
    .offcanvas__close button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
    
    .offcanvas__close button i {
        font-size: 17px !important;
    }
}

/* Mobile (< 768px) */
@media only screen and (max-width: 767px) {
    .offcanvas__close button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    
    .offcanvas__close button i {
        font-size: 16px !important;
    }
}

/* Extra Small Mobile (< 576px) */
@media only screen and (max-width: 575px) {
    .offcanvas__close button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
    
    .offcanvas__close button i {
        font-size: 15px !important;
    }
}

/* ========================================
   OPTIONAL: SMOOTH ANIMATION
   ======================================== */

/* Smooth fade-in animation saat sidebar muncul */
@keyframes fadeInClose {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.offcanvas__info.info-open .offcanvas__close button {
    animation: fadeInClose 0.3s ease-out !important;
}

/* ========================================
   DARK MODE SUPPORT (Optional)
   ======================================== */

/* Jika sidebar punya dark mode, sesuaikan warna */
@media (prefers-color-scheme: dark) {
    .offcanvas__close button {
        border-color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .offcanvas__close button i {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ========================================
   FIX UNTUK THEME TERTENTU
   ======================================== */

/* Override jika ada conflict dengan theme CSS */
.offcanvas__wrapper .offcanvas__content .offcanvas__top .offcanvas__close button {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
}

/* Fix jika button punya class tambahan */
.offcanvas__close button.close,
.offcanvas__close button.btn-close {
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #ffffff !important;
    background: transparent !important;
}

/* ========================================
   END OF CLOSE BUTTON STYLES
   ======================================== */

/* DISABLE AUTO CAPITALIZE */
h1, h2, h3, h4, h5, h6 {
	text-transform: none !important;
}