.wa-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 24px;
    left: 24px;          /* ⬅ pindah ke kiri */
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 56px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.wa-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

.call-to-action {
    position: relative;
    overflow: hidden;
}

.call-to-action .cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.call-to-action .container {
    position: relative;
    z-index: 2;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper */
.cta-video-slider {
    padding: 20px 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================= */
/* FIX FORM php-email-form */
/* ============================= */

.php-email-form .custom-form input,
.php-email-form .custom-form textarea,
.php-email-form .custom-form select {
    width: 100% !important;

    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;

    border-radius: 6px !important;
    border: 1px solid #ced4da !important;

    box-shadow: none !important;
    outline: none !important;

    background-color: #fff !important;
    color: #212529 !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* TEXTAREA */
.php-email-form .custom-form textarea {
    min-height: 120px !important;
    resize: vertical;
}

/* DATETIME FIX TOTAL */
.php-email-form .custom-form input[type="datetime-local"] {
    padding: 10px 14px !important;
}

/* DATETIME ICON */
.php-email-form .custom-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

/* LABEL */
.php-email-form .custom-form label {
    font-weight: 500;
    display: block;
}

/* BODY SAFETY */
body {
    overflow-x: hidden;
}

/* Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield !important;
}

/* Tambahkan di CSS */
.responsive-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
}

.responsive-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Untuk gambar - HAPUS padding-bottom */
.responsive-iframe-container.image-container {
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 300px;
    max-height: 70vh; /* Maksimal 70% tinggi viewport */
}

/* Gambar di dalam container */
.responsive-iframe-container.image-container img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 600px;
    object-fit: contain; /* Jaga aspect ratio */
    display: block;
    margin: 0 auto;
}

/* Container khusus untuk gambar saja */
.image-preview-container {
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

/* Untuk PDF lebih tinggi */
.pdf-container {
    padding-bottom: 140%; /* Lebih tinggi untuk PDF */
    min-height: 600px;
}

/* Untuk gambar */
.image-container {
    padding-bottom: 75%; /* 4:3 untuk gambar */
    min-height: 400px;
}

/* Toolbar untuk download */
.file-toolbar {
    /* background: #f8f9fa;
    border-bottom: 1px solid #ddd; */
    /* padding: 10px 15px; */
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
    justify-self: right;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.download-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.download-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

/* QR Code Button Styles */
.btn-qr {
    padding: 12px 25px;
    font-weight: 500;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

.btn-qr:active {
    transform: translateY(0);
}

/* QR Code Modal Styles */
#qrcodeCanvas {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: inline-block;
    max-width: 100%;
}

#qrcodeCanvas canvas {
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-qr {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    #qrcodeCanvas {
        padding: 10px;
    }
    
    #qrcodeCanvas canvas {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Animation for QR Code */
@keyframes qrPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#qrcodeCanvas canvas {
    animation: qrPulse 2s infinite;
}

/* WhatsApp Button Style */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Share Buttons Grid */
.share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.share-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.share-btn i {
    font-size: 24px;
}

/* Colors for different platforms */
.whatsapp-btn { background-color: #25D366; }
.facebook-btn { background-color: #1877F2; }
.telegram-btn { background-color: #0088CC; }
.twitter-btn { background-color: #1DA1F2; }
.copy-btn { background-color: #6c757d; }

/* Responsive */
@media (max-width: 576px) {
    .share-grid {
        grid-template-columns: 1fr;
    }
    
    .share-btn {
        padding: 12px;
    }
}

/* ============================= */
/* SELECT2 + CUSTOM FORM (FIXED) */
/* ============================= */

.custom-form .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* SINGLE SELECT */
.custom-form .select2-container--default .select2-selection--single {
    height: 44px !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    padding: 0 40px 0 12px !important; /* kiri text, kanan icon */
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;

    background-color: #fff !important;

    display: flex !important;
    align-items: center !important;

    overflow: hidden !important; /* 🔥 PENTING */
}

/* TEXT */
.custom-form .select2-selection__rendered {
    font-size: 15px !important;
    line-height: 1.4 !important;

    padding: 0 !important;
    margin: 0 !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    box-sizing: border-box !important;
}

/* ARROW */
.custom-form .select2-selection__arrow {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;

    transform: translateY(-50%);
    height: auto !important;
    width: auto !important;
}

/* CLEAR ICON */
.custom-form .select2-selection__clear {
    position: absolute !important;
    right: 32px !important; /* sebelum arrow */
    top: 50% !important;

    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
}

/* FOCUS */
.custom-form
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25) !important;
}

/* DROPDOWN */
.select2-container--default .select2-dropdown {
    border-radius: 6px !important;
    border: 1px solid #ced4da !important;
    box-sizing: border-box !important;
}

/* OPTION */
.select2-container--default .select2-results__option {
    font-size: 14px;
    padding: 8px 12px;
}

/* GLOBAL FIX SELECT2 OVERFLOW */
.select2-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container--open {
    z-index: 1055;
}