/* File: ../css/joinus-final.css (Revisi Rapat Final) */

/* ======================================= */
/* --- 1. General and Body Styling --- */
/* ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #4b0082; /* Ungu Gelap */
    background-color: #f3e7f8; /* Latar Belakang Sangat Muda */
    min-height: 100vh;
}

/* ======================================= */
/* --- 2. Navbar Styling & Dropdown --- */
/* ======================================= */
.navbar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: white;
    padding: 15px 60px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-left h1 {
    font-size: 18px;
    color: #4b0082; 
    font-weight: 600;
}

.nav-left span {
    color: #6a0dad; /* Ungu Utama */
}

.nav-center ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-center ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: 0.3s;
}

.nav-center ul li a:hover,
.nav-center ul li a.active {
    color: #4b0082; /* Warna aktif/hover sesuai tema */
}

/* Dropdown Styling */
.nav-right {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.profile-toggle {
    display: block;
    cursor: pointer;
}

.user-icon {
    width: 30px;
}

.dropdown-content {
    display: none; 
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: #4b0082; /* Background Dropdown ungu gelap */
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 20; 
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px; 
}

.dropdown-content a {
    color: white; 
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #6a0dad; 
}

.dropdown-content a img {
    filter: brightness(0) invert(1); 
    width: 16px;
}

.dropdown-content.show {
    display: block; 
}

/* ============================================================= */
/* --- 3. Registration Section & Form Styling (SANGAT RAPAT) --- */
/* ============================================================= */
.registration {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background-color: #ffffff;
    padding: 30px; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.1);
    width: 100%;
    max-width: 500px;
}

.form-container h2 {
    font-size: 24px;
    color: #4b0082;
    margin-bottom: 20px; 
    text-align: center;
}

/* REVISI FINAL: Jarak Antar Field dibuat sangat rapat */
.form-group {
    /* Dari 8px menjadi 15px (dianggap rapat) */
    margin-bottom: 15px; 
}

/* REVISI FINAL: Jarak antara label dan input dibuat sangat rapat */
label {
    display: block;
    /* Dari 2px menjadi 5px */
    margin-bottom: 5px; 
    font-weight: 600;
    color: #6a0dad;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e9d5f5;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    color: #222;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px; 
}

/* Styling untuk Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; 
    padding: 8px;
    border: 1px solid #e9d5f5;
    border-radius: 8px;
    background-color: #fcfcfc;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 500;
    color: #4b0082;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    border: 1px solid #6a0dad;
    border-radius: 4px;
    box-shadow: none;
    accent-color: #6a0dad;
    height: 16px; 
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px; 
    background-color: #6a0dad;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px; 
}

.submit-btn:hover {
    background-color: #4b0082;
}

/* ======================================= */
/* --- 4. Styling Modal Sukses Pendaftaran --- */
/* ======================================= */
.modal-register {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); 
    padding-top: 60px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content-register {
    background-color: #ffffff;
    margin: 15% auto; 
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3); 
}

.modal-content-register h3 {
    color: #4b0082; 
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.modal-content-register p {
    color: #6a0dad; 
    font-size: 15px;
    line-height: 1.5;
}

/* Button Styling Modal */
.btn-primary {
    background-color: #6a0dad;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #4b0082;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* ======================================= */
/* --- 5. Footer Styling --- */
/* ======================================= */
footer {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eaeaea;
    color: #6a0dad;
    font-size: 14px;
}

/* ======================================= */
/* --- 6. Responsive Design --- */
/* ======================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-center ul {
        gap: 15px;
    }
    
    .form-container {
        padding: 25px;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
}