/* [BARU] Global Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Variabel Warna Dasar */
:root {
    --bg-light: #FFFFFF;
    --text-dark: #343a40;
    --text-light: #f8f9fa;
    --brand-maroon: #9A1D2A;
    --brand-red-dark: #7A0C16;
    --brand-blue: #007FA9;
    --accent-orange: #E95B28;
    --accent-orange-dark: #C24A1F;
    --accent-yellow: #F9B233;
    --accent-cyan: #00A3C8;
    --neutral-gray-light: #f8f9fa;
    --neutral-gray-dark: #e9ecef;
    --particle-color: rgba(255, 255, 255, 0.3);
}

/* PRELOADER CSS */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--neutral-gray-light);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 1s, opacity 0.5s ease-in;
    overflow-x: hidden;
}

body.loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neutral-gray-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--neutral-gray-dark);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* AKHIR PRELOADER */

/* HEADER SECTION */
.header-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--accent-orange-dark) 40%, var(--accent-yellow) 100%);
    color: var(--text-light);
}

.header-section::before {
    /* Pola */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.toptal.com/designers/subtlepatterns/uploads/greek-vase.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.1;
    z-index: 1;
}

#particle-canvas {
    /* Canvas Partikel */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* NAVBAR STYLES (Absolute di desktop) */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-sizing: border-box;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-height: 50px;
    z-index: 10;
}

.navbar-right-side {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 11;
    text-decoration: none;
}

.navbar-brand .logo {
    height: 55px;
    width: auto;
    display: block;
}

/* Nav Links, Dropdown, Hamburger (Style dasar) */
.nav-links a, .hamburger {
    color: var(--text-light);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-out;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 5px;
}

.nav-links li a[href="../login.php"],
/* Sesuaikan path jika login.php di luar folder */
.nav-links li a[href="login.php"] {
    /* Atau jika di folder yg sama */
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-yellow));
    color: white;
    font-weight: 700;
    border-radius: 20px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(233, 91, 40, 0.4);
}

.nav-links li a[href="../login.php"]:hover,
.nav-links li a[href="login.php"]:hover {
    background: linear-gradient(45deg, var(--accent-yellow), var(--accent-orange));
    box-shadow: 0 6px 20px rgba(233, 91, 40, 0.6);
    transform: translateY(-2px);
}

.nav-links li a[href="../login.php"]::after,
.nav-links li a[href="login.php"]::after {
    display: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    display: block;
}

.dropdown {
    position: relative;
}

.dropdown .bi-chevron-down {
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown:hover>a .bi-chevron-down, .dropdown.active>a .bi-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 5px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu a {
    white-space: nowrap;
    padding: 10px 20px;
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 26px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger .line {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    left: 0;
}

.hamburger .line-1 {
    top: 0;
}

.hamburger .line-2 {
    top: 8px;
}

.hamburger .line-3 {
    top: 16px;
}

.hamburger.active .line-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line-2 {
    opacity: 0;
}

.hamburger.active .line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* KONTEN HEADER (Judul Halaman) */
.header-content {
    text-align: center;
    color: var(--text-light);
    z-index: 4;
    position: relative;
    padding: 20px;
    margin-top: 60px;
}

.header-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* MAIN CONTENT SECTION */
.main-content {
    padding: 60px 20px;
    background-color: var(--neutral-gray-light);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-light);
    /* [PERUBAHAN 1] Padding dihapus dari container agar gambar bisa menempel */
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    /* [BARU] Menjaga agar gambar di dalam container ikut terpotong rounded */
    overflow: hidden;
}

/* Style H2 dan H3 lama ini tidak akan terpakai di form, 
   tapi kita biarkan untuk halaman lain yang mungkin menggunakannya.
*/
.main-content h2 {
    color: var(--brand-maroon);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
}

.main-content h3 {
    color: var(--accent-orange-dark);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.main-content p, .main-content ul, .main-content ol {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-dark);
}

.main-content ul, .main-content ol {
    padding-left: 25px;
}

.main-content strong {
    color: var(--brand-maroon);
}

/* FOOTER (Sama) */
.footer {
    background: linear-gradient(135deg, var(--brand-red-dark) 0%, var(--accent-orange-dark) 40%, var(--accent-yellow) 100%);
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
}

.footer-column p, .footer-column a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column i {
    margin-right: 8px;
}

.footer-column a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Aturan hover SPESIFIK (Setelah yang umum) */
.social-links a[aria-label="Instagram"]:hover {
    background: #E4405F;
    /* Warna Instagram */
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877F2;
    /* Warna Facebook */
}

.social-links a[aria-label="Twitter"]:hover {
    background: #1DA1F2;
    /* Warna Twitter */
}

.social-links a[aria-label="Youtube"]:hover {
    background: #FF0000;
    /* Warna YouTube */
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === MEDIA QUERIES === */
@media (min-width: 993px) {

    /* Desktop */
    .nav-links a:not([href$="login.php"]):hover::after {
        transform: scaleX(1);
    }

    .dropdown:hover>a::after {
        transform: scaleX(1);
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu a:hover {
        background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
        color: var(--text-light);
    }
    
    .nav-links > li:last-child .dropdown-menu {
        left: auto;  /* Matikan posisi kiri default */
        right: 0;    /* Paksa menempel ke sisi kanan tombol */
        transform-origin: top right; /* Memastikan animasi muncul dari kanan atas */
    }

    .nav-links > li:last-child .dropdown-menu {
        right: -10px; 
    }
    
}

@media (max-width: 992px) {

    /* Mobile/Tablet */
    body {
        padding-top: 55px;
        /* Sesuaikan nilainya agar pas */
    }

    .navbar-brand {
        height: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .navbar-brand .logo {
        height: 35px;
        /* Ukuran logo mobile */
    }

    .navbar-right-side {
        gap: 0;
    }

    .header-section {
        height: auto;
        min-height: 30vh;
        padding-bottom: 20px;
        flex-direction: column;
        margin: 0;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 20px;
        justify-content: space-between;
        min-height: auto;
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .header-content {
        margin-top: 10px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 30px 15px;
    }

    .container {
        /* [PERUBAHAN 2] Padding di mobile juga dihapus dari container */
        padding: 0;
        margin: 0 10px;
        width: auto;
    }

    .main-content h2 {
        font-size: 1.7rem;
    }

    .main-content h3 {
        font-size: 1.3rem;
    }

    .main-content p, .main-content ul, .main-content ol {
        font-size: 0.95rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-column h3::after {
        left: 0;
        transform: none;
    }

    .social-links {
        justify-content: center;
    }

    /* Mobile Menu Card */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 1000;
        width: 90%;
        height: auto;
        top: 60px;
        left: 50%;
        background-color: #222;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        padding: 20px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -20px);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0.3s;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s 0s;
    }

    .nav-links li a[href$="login.php"] {
        text-align: left;
        margin: 0;
        font-weight: 600;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 12px 20px;
    }

    .nav-links li a[href$="login.php"]:hover {
        background: none;
        transform: none;
        color: var(--accent-orange);
    }

    .nav-links a {
        color: var(--text-light);
        padding: 12px 20px;
    }

    .nav-links a:hover {
        color: var(--accent-orange);
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        background-color: transparent;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
    }

    .dropdown-menu a {
        padding-left: 40px;
        color: #ccc;
    }

    .dropdown-menu a:hover {
        color: var(--accent-orange);
    }

    .dropdown.active>.dropdown-menu {
        max-height: 500px;
        padding: 0;
    }

    .hamburger {
        display: block;
    }
}

/*
===================================================
 STYLES FAQ (Tidak terpakai di halaman ini, tapi
 biarkan saja untuk halaman lain)
===================================================
*/
.faq-container {
    margin-top: 30px;
}

.faq-container details {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--neutral-gray-dark);
    background-color: var(--bg-light);
    transition: background-color 0.2s ease;
}

.faq-container details:first-of-type {
    border-top: 1px solid var(--neutral-gray-dark);
}

.faq-container details[open] {
    background-color: #fdfdfd;
}

.faq-container summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-red-dark);
    cursor: pointer;
    position: relative;
    list-style: none;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: '+';
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-container details p {
    padding: 0 20px;
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: justify;
    border-top: 1px solid var(--neutral-gray-dark);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-15px);
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out, transform 0.3s ease-out, padding 0.4s ease-out;
}

.faq-container details[open] p {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 20px;
    padding-bottom: 20px;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s, padding 0.4s ease-out;
}

.faq-container details.is-closing p {
    max-height: 0;
    opacity: 0;
    transform: translateY(-15px);
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-out, transform 0.3s ease-out, padding 0.4s ease-out;
}


/* ===================================================
===================================================
 CSS UNTUK FORMULIR BARU (Versi Font: POLE)
===================================================
===================================================
*/

/* Padding ditambahkan ke <form>, bukan .container */
.container form {
    padding: 40px;
}

@media (max-width: 992px) {
    .container form {
        padding: 25px;
    }
}

/* Top image styling */
.form-image {
    margin-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    width: 100%;
    display: block;
}

/* Header section for title and description */
.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-title {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1f2937;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.form-description {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    text-align: center;
}

/* Container for each form field group */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form labels */
.form-label {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

/* Common styles for input, select, and textarea */
.form-input,
.form-select,
.form-textarea {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #1f2937;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
    outline: none;
}

/* Consent Checkbox Group */
.consent-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    height: 1rem;
    width: 1rem;
    color: #4f46e5;
}

.consent-label {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.consent-label a {
    color: #4f46e5;
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    width: 100%;
    border-radius: 0.375rem;
    background-color: #4f46e5;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    background-color: #4338ca;
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .form-title {
        font-size: 1.5rem;
    }
}

/* ===================================================
 STYLE KUSTOM UNTUK AREA UPLOAD (DROPZONE)
=================================================== */

.file-input-hidden {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    box-sizing: border-box;
}

.file-drop-icon {
    font-size: 3rem;
    color: #4f46e5;
    margin-bottom: 1rem;
}

.file-drop-text {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    color: #4b5563;
    text-align: center;
    line-height: 1.5;
}

.file-drop-text strong {
    color: #4f46e5;
    font-weight: 600;
}

.file-drop-area:hover {
    background-color: #eef2ff;
    border-color: #6366f1;
}

.file-drop-area.is-dragover {
    background-color: #e0e7ff;
    border-color: #4f46e5;
    border-style: solid;
}

.file-name-display-area {
    /* [DIUBAH] Font kembali ke Poppins */
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    padding: 8px;
    background-color: #eef2ff;
    border-radius: 0.25rem;
    text-align: center;
    display: none;
}

/* ===================================================
 [BARU] STYLE UNTUK PESAN SUKSES/GAGAL
=================================================== */
.form-message {
    padding: 1rem;
    margin: 0 40px 1.5rem 40px;
    /* Samakan dengan padding form */
    border-radius: 0.375rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
    text-align: center;
}

/* Penyesuaian padding di mobile */
@media (max-width: 992px) {
    .form-message {
        margin: 0 25px 1.5rem 25px;
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* =========================================
   [BARU] IMAGE PREVIEW MODAL
   ========================================= */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

/* Konten Modal */
.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    animation: zoomIn 0.3s;
}

.image-modal-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Caption */
.image-modal-caption {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Tombol Close */
.close-image-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-image-modal:hover,
.close-image-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9)
    }

    to {
        transform: scale(1)
    }
}

/* Style Link Preview */
.preview-link {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================
   [BARU] STYLE TOMBOL JOIN WA (PESAN SUKSES)
   ========================================= */
.wa-join-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #25D366; /* Warna Hijau WA */
    color: white !important; /* Paksa putih */
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #20ba5a;
}

.wa-join-link:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.wa-join-link i {
    margin-right: 8px;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Penyesuaian pesan sukses agar teks lebih rapi */
.form-message.success {
    text-align: center; /* Rata tengah */
    line-height: 1.6;
}