/* =========================================================
   FONT & BASE
========================================================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f8f8f8;
}

/* =========================================================
   CONTACT SECTION (FULLWIDTH IMAGE + OVERLAY)
========================================================= */
.contact-section {
    position: relative;
    padding: 120px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background: url('/img/background.jpg') no-repeat center center / cover;
}

/* Overlay warna herbal */
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(46, 92, 46, 0.75);
    /* #b6b788 */
    z-index: 1;
}

/* =========================================================
   CONTAINER
========================================================= */
.contact-container {
    position: relative;
    z-index: 2;

    background: rgba(255, 255, 255, 0.96);
    width: 85%;
    max-width: 1100px;
    padding: 40px;

    border-radius: 0px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

/* Entrance animation */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   TITLE & SUBTITLE
========================================================= */
.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2f2f2f;
    animation: zoomIn 1s ease forwards;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
    animation: fadeIn 1.2s ease forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================
   FORM LAYOUT
========================================================= */
.contact-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-left,
.form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================================================
   INPUT & TEXTAREA
========================================================= */
input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #b6b788;
    border-radius: 0px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    height: 160px;
    resize: none;
}

input:focus,
textarea:focus {
    border-color: #9ea05e;
    box-shadow: 0 0 0 2px rgba(182, 183, 136, 0.3);
}

/* =========================================================
   BUTTON
========================================================= */
button {
    width: 30%;
    padding: 15px 0;
    background: transparent;
    color: #2f2f2f;
    border: 2px solid #2f2f2f;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: block;
    margin: 20px auto 0 auto;
    transition: all 0.3s ease;
}

button:hover {
    background: #a5cd48;
    color: #fff;
    border-color: #a5cd48;
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */
@media (max-width: 768px) {
    .contact-form {
        flex-direction: column;
    }

    .contact-title {
        font-size: 2rem;
    }

    button {
        width: 80%;
        font-size: 16px;
        white-space: nowrap;
    }
}

/* =========================================================
   MODAL
========================================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 300px;
    text-align: center;
}

.modal-content p {
    color: #000;
    font-size: 16px;
}

.modal-content button {
    margin-top: 15px;
    padding: 8px 15px;
    cursor: pointer;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    transition: background 0.3s ease;
}

.modal-content button:hover {
    background: #ddd;
}