body {
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #e27208ff, #00f2fe);
}

/* Header Judul */
.header {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    /* atas kecil, bawah kecil */
    padding: 0;
    /* jangan ada padding ekstra */
    color: #2c3e50;
}

.container {
    width: 90%;
    /* supaya ada ruang kiri kanan */
    max-width: 400px;
    /* biar ga terlalu panjang di layar besar */
    margin: 0 auto;
    /* rata tengah */
    text-align: center;
}

.phone-frame {
    width: 320px;
    height: 640px;
    /* panjang frame sudah ditentukan */
    background: white;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 6px solid #222;
    position: relative;
    overflow-y: auto;
    /* kalau isi kepanjangan bisa scroll */
}

.phone-frame::before {
    content: '';
    width: 60px;
    height: 6px;
    background: #222;
    border-radius: 10px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    text-align: center;
    margin-top: px;
    color: #333;
}

.detail {
    margin-top: 20px;
    font-size: 16px;
}

.detail p {
    margin: 8px 0;
}

.tarif {
    font-size: 22px;
    font-weight: bold;
    color: #e91e63;
}

.btn-pay,
.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-pay:hover,
.btn-submit:hover {
    background: #388e3c;
}

input[type="text"] {
    width: 100%;
    /* ikut lebar container */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}


select {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

.error {
    color: red;
    margin-top: 10px;
    text-align: center;
}

.detail-box {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.detail-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.detail-box p {
    margin: 6px 0;
    font-size: 15px;
}

.detail-box .tarif {
    font-size: 16px;
    font-weight: bold;
    color: #d9534f;
}

.pembayaran {
    margin-top: 15px;
}

.pembayaran label {
    font-size: 15px;
    cursor: pointer;
}

.detail-container {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
}

.detail-card {
    background: #fff;
    width: 320px;
    padding: 10px 20px;
    /* padding atas dikurangi */
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: "Segoe UI", sans-serif;
    margin-top: 10px;
    /* jarak dari judul atas kecil saja */
}

.detail-card h2 {
    text-align: center;
    margin: 5px 0 15px 0;
    /* atas kecil, bawah tetap ada */
    font-size: 18px;
    color: #2c3e50;
}

.tarif {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #27ae60;
}

.harga {
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 8px;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px;
}

.payment-options input[type="radio"] {
    display: none;
}

.payment-options label {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.payment-options input[type="radio"]:checked+label {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2ecc71;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #27ae60;
}

.preview {
    margin-top: 10px;
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

.detail {
    font-family: Arial, sans-serif;
    max-width: 300px;
    margin: auto;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-options {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.payment-options input[type="radio"] {
    display: none;
}

.payment-options label {
    padding: 8px 16px;
    border: 1px solid #007BFF;
    border-radius: 20px;
    cursor: pointer;
    color: #007BFF;
    transition: all 0.2s;
}

.payment-options input[type="radio"]:checked+label {
    background: #007BFF;
    color: #fff;
}

#bayar {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 8px 0;
}

#preview {
    font-weight: bold;
    margin: 5px 0;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #ccc;
    color: #fff;
    font-size: 16px;
    cursor: not-allowed;
    transition: all 0.3s;
}

.btn.active {
    background: #28a745;
    cursor: pointer;
}

.star-rating {
            display: flex;
            gap: 8px;
            font-size: 28px;
            cursor: pointer;
            margin-bottom: 16px;
        }
.star {
            color: #ccc;
            transition: color 0.2s;
        }

.star.active,
.star:hover,
.star:hover~.star {
            color: #f97316;
        }


        button {
            width: 100%;
            background: #f97316;
            border: none;
            padding: 12px;
            color: #fff;
            font-size: 16px;
            font-weight: bold;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s;
        }

        button:hover {
            background: #ea580c;
        }
