:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --text-color: #2c3e50;
    --light-gray: #f5f6fa;
    --white-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 100px auto 2rem;
    padding: 0 1rem;
}

/* Form Container */
.form-container {
    background: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 1.5rem;
    transition: transform 0.2s;
}

.form-container:hover {
    transform: translateY(-5px);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1rem;
}

/* Service Highlights */
.service-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-size: 0.9rem;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    transition: box-shadow 0.3s, transform 0.2s;
}

.highlight-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Address Grid */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Input Fields */
label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2);
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.btn-submit {
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Success Message */
.success-message {
    display: none;
    background: #e6f4ea;
    border: 1px solid var(--accent-color);
    color: #1e8e3e;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Price Display */
.price-display {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: bold;
    margin-top: 0.75rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .service-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .form-grid,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .btn-submit {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    .popup-content {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        position: relative;
    }
    
    .popup-content img {
        max-width: 100%;
        height: auto;
    }
    
    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
        cursor: pointer;
    }
}



/* Styling untuk Popup QRIS */
#qrisPopup {
    display: none;
    position: fixed;
    top: 50%; /* Menempatkan di tengah layar */
    left: 50%; /* Menempatkan di tengah layar */
    transform: translate(-50%, -50%); /* Memastikan di tengah */
    width: 80%;  /* Menyesuaikan ukuran lebar popup */
    max-width: 600px;  /* Lebar maksimal popup */
    max-height: 600px;  /* Menyesuaikan tinggi maksimal popup */
    background-color: rgba(0, 0, 0, 0.7);  /* Menambah transparansi agar lebih gelap */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;  /* Menambahkan padding untuk memberi ruang lebih pada konten */
    width: 100%;
    max-width: 600px;  /* Ukuran maksimal lebar */
    max-height: 500px; /* Ukuran maksimal tinggi */
    position: relative;
    display: flex;
    flex-direction: column;  /* Menata konten secara vertikal */
    justify-content: center; /* Menjaga konten di tengah secara vertikal */
    align-items: center; /* Menjaga konten di tengah secara horizontal */
    text-align: center;  /* Mengatur teks dan gambar agar sejajar di tengah */
    overflow: hidden;
    color: #333; /* Menetapkan warna teks agar lebih kontras dengan latar belakang */
}

.popup-content h3 {
    font-size: 22px;  /* Ukuran font judul lebih kecil */
    margin-bottom: 15px;
    font-weight: bold;
    color: #000;  /* Mengubah warna judul agar lebih jelas */
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #000;  /* Mengubah warna teks agar lebih kontras */
}

.popup-content img {
    width: 80%;  /* Mengurangi ukuran gambar QRIS */
    max-width: 400px;  /* Lebar maksimal gambar */
    height: auto;
    margin: 0 auto;  /* Memastikan gambar di tengah secara horizontal */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #000;
    cursor: pointer;
    background: none;
    border: none;
}
