/* ==========================================
   PENGATURAN UMUM (RESET & FONT)
   ========================================== */
* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* Latar belakang gradien ORANYE */
body {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ==========================================
   KOTAK FORMULIR UTAMA
   ========================================== */
.container {
    background: #ffffff;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

/* ==========================================
   HEADER (IKON DAN JUDUL)
   ========================================== */
/* Mengatur agar logo berada di atas judul di tengah */
.header-title {
    display: flex;
    flex-direction: column; /* Menyusun elemen dari atas ke bawah */
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    text-align: center;
}

.header-icon {
    width: 80px; /* Ukuran logo yang proporsional */
    height: 80px; 
    border-radius: 16px; /* Memberikan sudut melengkung seperti ikon aplikasi */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Bayangan halus pada logo */
    margin-bottom: 12px; /* Jarak antara logo dan teks judul */
}

.header-title h2 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

/* ==========================================
   FORM GROUP & STYLING INPUT FORM
   ========================================== */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background-color: #f8fafc;
    color: #2d3748;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

textarea.form-control {
    resize: vertical;
}

/* ==========================================
   STYLING TOMBOL
   ========================================== */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Tombol Utama (Daftar Sekarang) */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.btn-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    color: #94a3b8;
}

/* Tombol WhatsApp (Kirim OTP) */
.btn-whatsapp {
    background: #25D366; 
    color: white;
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover:not(:disabled) {
    background: #128C7E; 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(0);
}

/* ==========================================
   KOLOM OTP (Tersembunyi di awal)
   ========================================== */
.otp-section {
    display: none;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px dashed #cbd5e1;
}

/* ==========================================
   MODAL / POPUP SUKSES MODERN
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 60px;
    color: #4ade80;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal-content p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-modal {
    background: #4ade80;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.btn-modal:hover {
    background: #22c55e;
    transform: translateY(-2px);
}