/* Styles untuk halaman Contact */
.contact-section {
    background-color: rgba(230, 240, 250, 0.85);
    flex: 1;
    padding: 50px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding-bottom: 40px;
    min-height: calc(100vh - 110px);
    font-family: 'Montserrat', sans-serif;
}

/* Background image dengan animasi parallax */
.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/tes.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.70; /* Menambahkan opacity, nilai bisa disesuaikan */
    z-index: -1;
    animation: parallaxBg 30s ease-in-out infinite alternate;
}

@keyframes parallaxBg {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 20%;
    }
}

.contact-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    animation: slideDown 0.5s ease-out; /* Animasi lebih cepat */
}

.contact-title h2 {
    display: inline-block;
    background: linear-gradient(45deg, #407294, #55788a, #6e8fa0);
    background-size: 300% 300%;
    color: white;
    padding: 10px 40px;
    border-radius: 15px;
    font-size: 32px;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: gradientTitle 6s ease infinite;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.contact-title h2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shineEffect 3s linear infinite;
}

@keyframes gradientTitle {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shineEffect {
    0% {
        transform: translateX(-150%) rotate(45deg);
    }
    100% {
        transform: translateX(150%) rotate(45deg);
    }
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-message {
    background-color: rgba(224, 232, 240, 0.9);
    border-radius: 15px;
    padding: 22px 32px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.5s ease-out; /* Animasi lebih cepat */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-message::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: messageSweep 6s infinite;
}

@keyframes messageSweep {
    0% {
        left: -100%;
    }
    48% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.contact-message:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Jarak dikurangi */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-message p {
    font-size: 20px;
    line-height: 1.5;
    color: #304258;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.contact-message p:first-child {
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.contact-message p:last-child {
    font-size: 18px; /* Ukuran font lebih kecil untuk paragraf kedua */
    color: #455a74; /* Warna sedikit lebih terang */
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: auto;
    max-width: 320px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    background-color: rgba(224, 232, 240, 0.9);
    border-radius: 50px;
    padding: 10px 25px;
    text-decoration: none;
    color: #304258;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.contact-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    z-index: -1;
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 20px rgba(84, 120, 138, 0.2);
}

.contact-item:hover img {
    transform: rotate(15deg) scale(1.1);
}

.contact-item img {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* Efek ripple untuk contact items */
.contact-item:active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Warna untuk setiap platform */
.whatsapp::before {
    background: rgba(37, 211, 102, 0.08);
    backdrop-filter: blur(5px);
}

.whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.email::before {
    background: rgba(234, 67, 53, 0.08);
    backdrop-filter: blur(5px);
}

.email:hover {
    background-color: rgba(234, 67, 53, 0.1);
    border-color: rgba(234, 67, 53, 0.3);
}

.instagram::before {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.08), rgba(176, 81, 186, 0.08));
    backdrop-filter: blur(5px);
}

.instagram:hover {
    background-color: rgba(225, 48, 108, 0.1);
    border-color: rgba(225, 48, 108, 0.3);
}

.tiktok::before {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.05), rgba(82, 229, 231, 0.05));
    backdrop-filter: blur(5px);
}

.tiktok:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Menu hamburger styling */
#menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Untuk body */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
}

body.loaded {
    opacity: 1;
}

/* Pastikan footer berada di bagian bawah */
footer {
    position: relative;
    margin-top: auto; /* Ini akan mendorong footer ke bagian bawah */
    font-family: 'Montserrat', sans-serif;
}

footer p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Menghapus background image pada mobile */
@media (max-width: 768px) {
    .contact-section::before {
        background-image: none; /* Hapus background image */
    }
    
    .contact-section {
        background-color: rgba(230, 240, 250, 1); /* Warna dasar tanpa transparansi */
    }
    
    .contact-info {
        width: auto;
        max-width: 280px;
    }
    
    .contact-item {
        padding: 8px 20px;
        font-size: 14px;
        width: auto;
    }
    
    .contact-item:active {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .contact-item img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .contact-title h2 {
        font-size: 22px;
        padding: 10px 25px;
    }
    
    /* Menyesuaikan animasi untuk perangkat mobile */
    .contact-title h2::before {
        animation: shineEffect 4s linear infinite;
    }
    
    .contact-message::after {
        animation: messageSweep 8s infinite;
    }
    
    @keyframes parallaxBg {
        0% {
            background-position: 50% 0%;
        }
        100% {
            background-position: 50% 20%;
        }
    }
    
    /* Mobile menu */
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    nav ul {
        flex-direction: column;
        padding-top: 80px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    #menu-toggle:checked ~ nav {
        right: 0;
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .contact-info {
        width: 90%;
    }
    
    .contact-item {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .contact-message p {
        font-size: 16px;
    }
    
    /* Perbaikan untuk tampilan mobile: text wrap yang lebih baik */
    .contact-message p {
        font-size: 16px;
        white-space: normal;
        word-break: keep-all;
    }
    
    .contact-message p:first-child {
      font-size: 15px;
      line-height: 1.4;
    }
}

/* CSS Form Masukan - Tambahkan ke contact.css */

/* Container untuk form feedback */
.feedback-form {
    background-color: rgba(224, 232, 240, 0.9);
    border-radius: 15px;
    padding: 25px 32px;
    margin-bottom: 15px;
    margin-top: 60px; /* Meningkatkan dari 15px */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feedback-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: messageSweep 6s infinite;
}

.feedback-form h3 {
    color: #304258;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    position: relative;
}

.feedback-form h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #407294, #55788a);
    transform: translateX(-50%);
}

/* Style untuk form dan input */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #304258;
    font-weight: 500;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(84, 120, 138, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    color: #304258;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.2);
    background-color: white;
}

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

/* Style untuk checkbox consent */
.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

/* Style untuk tombol */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.submit-btn, .reset-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.submit-btn {
    background: linear-gradient(45deg, #407294, #55788a);
    color: white;
    flex: 2;
}

.reset-btn {
    background-color: rgba(224, 232, 240, 0.9);
    color: #304258;
    border: 1px solid rgba(84, 120, 138, 0.3);
    flex: 1;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #55788a, #407294);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(64, 114, 148, 0.3);
}

.reset-btn:hover {
    background-color: rgba(224, 232, 240, 1);
    color: #304258;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:active, .reset-btn:active {
    transform: translateY(-1px);
}

/* Notifikasi sukses/error */
.form-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    font-family: 'Montserrat', sans-serif;
}

.form-notification.error {
    background-color: #f44336;
}

.form-notification.hidden {
    display: none;
}

#closeNotification {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsif untuk tablet dan mobile */
@media (max-width: 768px) {
    .feedback-form {
        padding: 20px;
    }
    
    .feedback-form h3 {
        font-size: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn, .reset-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
    }
    
    .form-checkbox label {
        font-size: 12px;
    }
    
    .feedback-form h3 {
        font-size: 18px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

/* Menambahkan margin-bottom pada contact-info untuk memberi jarak dengan form */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: auto;
    max-width: 320px;
    margin-bottom: 50px; /* Menambahkan margin untuk memberi jarak */
}

/* Alternatif, bisa juga menambahkan margin-top pada feedback-form */
.feedback-form {
    background-color: rgba(224, 232, 240, 0.9);
    border-radius: 15px;
    padding: 25px 32px;
    margin-top: 15px; /* Menambahkan jarak bagian atas */
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Animasi untuk header - sama seperti halaman lain */
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header styling untuk animasi */
body.loaded header {
  animation: headerSlideDown 0s ease-out forwards;
}