/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    height: 100%;
}

/* Container */
.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;

    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* Header */
.header {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.transparent {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.header img {
    height: 40px;
    transition: transform 0.3s ease;
}

/* Footer */
.footer {
    padding: 25px;
    background: #f8f9fa;
    color: #666;
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CTA Button */
.cta-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 40px;
    background: #6c63ff;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-button:hover {
    transform: translateX(-50%) scale(1.05);
    background: #5a52e0;
}

/* Sections */
.section {
    padding: 40px 20px;
}

.title {
    font-size: 24px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    font-size: 16px;
    color: #666;
    text-align: justify;
    margin-bottom: 30px;
    line-height: 1.4;
    padding: 0 15px;
}

/* Cards */
.card-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.card {
    padding: 25px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.card h4 {
    color: #6c63ff;
    margin-bottom: 15px;
    font-size: 18px;
}

.card p {
    text-align: justify;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.card a {
    display: inline-block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    padding: 12px 20px;
    background: #6c63ff;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.card a:hover {
    background: #5a52e0;
}


.para {
    text-align: justify;
}

/* Responsive Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 400px;
        /* Tetap mobile layout */
    }

    .row {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .row:nth-child(even) {
        flex-direction: row-reverse;
    }

    .row img {
        width: 45%;
        max-width: 200px;
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


.isi-container {
    width: 100%;
    max-width: 400px;
    /* Batasi ukuran maksimal untuk layout mobile */
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;

    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribusi elemen vertikal */
    min-height: max-content;
    /* Pastikan kontainer memenuhi tinggi layar */
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: justify;
    justify-content: flex-start;
}

.form-group label {
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    /* Jarak antar label dan input */
    white-space: nowrap;
    /* Pastikan label tidak terpotong */
}

.form-group input {
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Input Umur */
.form-group #usia {
    width: 50px;
    /* Ukuran tetap untuk input umur */
    padding: 5px;
}

/* Teks "Tahun" */
.tahun-text {
    margin-left: 10px;
    /* Tambahkan jarak antara input dan teks "Tahun" */
    font-size: 16px;
}



/* Input Nama Kota */
.form-group #kota, #email {
    width: 100%;
    /* Lebar penuh */
    padding: 8px;
    text-align: left;
}

.scan-box {
    width: 100%;
    height: 200px;
    border: 1px solid #ddd;

    border-radius: 8px;
    background-color: #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button {
    display: block;
    width: 100%;
    /* Pastikan tombol tidak melebihi container */
    max-width: 360px;
    /* Tambahan batas maksimal untuk keamanan */
    margin: 0 auto;
    /* Pusatkan tombol */
    padding: 12px;
    font-size: 16px;
    color: #fff;
    background-color: rgb(14, 207, 34);
    border: none;
    border-radius: 8px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.button:hover {
    background-color: #524bf4;
}

.back-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    text-align: left;
    margin-top: 20px;
    display: block;
    /* Pastikan link tampil di baris sendiri */
    align-self: flex-start;
    /* Posisikan di sisi kiri container */
}

.back-link:hover {
    text-decoration: underline;
}