@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
body {
    background: url("img/hero-img.png") no-repeat;
    min-height: 100vh;
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 20px;
}
body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0.4;
    width: 100vw;
    height: 100vh;
	background-color:#000;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}
nav {
	width:100%;
    padding: 25px 60px;
	margin:0px auto;
    z-index: 1;
    position: relative;
}
nav a img {
    width: 96px;
	margin:0px auto;
}
.form-wrapper {
    position: relative;
    margin: 20px auto 40px auto;
    border-radius: 8px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.form-wrapper h2 {
    color: #fff;
    font-size: 1.5rem;
	text-align:center;
}
.form-wrapper form {
    margin: 25px 0 30px;
}
form .form-control {
    height: 50px;
    position: relative;
    margin-bottom: 16px;
}
.form-control input {
    height: 100%;
    width: 100%;
    background: #333;
    border: none;
    outline: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    padding: 0 20px;
}
.form-control input:is(:focus, :valid) {
    background: #444;
    padding: 16px 20px 0;
}
.form-control label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    color: #8c8c8c;
    transition: all 0.1s ease;
}
.form-control input:is(:focus, :valid)~label {
    font-size: 0.75rem;
    transform: translateY(-130%);
}
form button {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    background: #e50914;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    outline: none;
    margin: 25px 0 10px;
    cursor: pointer;
    transition: 0.1s ease;
}
form button:hover {
    background: #c40812;
}
.form-wrapper a {
    text-decoration: none;
}
.form-wrapper a:hover {
    text-decoration: underline;
}
.form-wrapper :where(label, p, small, a) {
    color: #b3b3b3;
}
form .form-help {
    display: flex;
    justify-content: space-between;
}
form .remember-me {
    display: flex;
}
form .remember-me input {
    margin-right: 5px;
    accent-color: #b3b3b3;
}
form .form-help :where(label, a) {
    font-size: 0.9rem;
}
.form-wrapper p a {
    color: #fff;
}
.form-wrapper small {
    display: block;
    margin-top: 15px;
    color: #b3b3b3;
}
.form-wrapper small a {
    color: #0071eb;
}
/* Styling untuk form pendaftaran baru */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
}

.form-group input[type="text"], 
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 16px;
    background: #333;
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus, 
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #e50914;
    background: #444;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e50914;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    color: #b3b3b3;
    font-size: 0.95rem;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radio-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #e50914;
    cursor: pointer;
}

.radio-item label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    color: #b3b3b3;
    font-size: 0.95rem;
}

.discord-link {
    color: #0071eb;
    text-decoration: underline;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.9rem;
}

.discord-link:hover {
    color: #0056b3;
}

.hidden {
    display: none;
}

.submit-btn {
    background: linear-gradient(45deg, #e50914, #c40812);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #c40812, #a0070f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.discord-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-info h3 {
    color: #e50914;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.discord-info p {
    margin: 8px 0;
    color: #b3b3b3;
    font-size: 0.95rem;
}

.discord-info a {
    display: inline-block;
    background: #7289da;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.discord-info a:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Modal untuk popup gambar Discord */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 600px;
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Styling untuk popup ucapan terima kasih */
.thank-you-content {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.thank-you-header {
    background: linear-gradient(135deg, #e50914, #c40812);
    padding: 25px 30px;
    margin: 0;
    position: relative;
}

.thank-you-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 10px solid #c40812;
}

.thank-you-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.thank-you-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.thank-you-header h2::before {
    content: "🎉";
    font-size: 1.2rem;
}

.thank-you-body {
    padding: 30px;
    margin: 0;
}

.thank-you-message {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.thank-you-id {
    color: #e50914;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-weight: 600;
    background: rgba(229, 9, 20, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.thank-you-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 25px;
}

.thank-you-info h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thank-you-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.thank-you-info li {
    color: #b3b3b3;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.4;
}

.thank-you-info li:before {
    content: "✓";
    color: #e50914;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.thank-you-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 30px 30px;
}

.thank-you-btn {
    background: #333;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.thank-you-btn:hover {
    background: #444;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.discord-btn {
    background: #7289da;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
    border: 1px solid #7289da;
}

.discord-btn:hover {
    background: #5a6fd8;
    border-color: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}

/* Animasi untuk popup ucapan terima kasih */
@keyframes thankYouSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.thank-you-content {
    animation: thankYouSlideIn 0.5s ease-out;
}

/* Responsive untuk popup ucapan terima kasih */
@media (max-width: 740px) {
    .thank-you-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .thank-you-header {
        padding: 20px 25px;
    }
    
    .thank-you-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .thank-you-header h2 {
        font-size: 1.3rem;
    }
    
    .thank-you-body {
        padding: 25px 20px;
    }
    
    .thank-you-message {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .thank-you-id {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .thank-you-info {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .thank-you-info h3 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .thank-you-info li {
        font-size: 0.85rem;
        margin-bottom: 10px;
        padding-left: 20px;
    }
    
    .thank-you-footer {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px 25px;
    }
    
    .thank-you-btn,
    .discord-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 740px) {
    body::before {
        display: none;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    nav a img {
        width: 80px;
    }
    
    .form-wrapper {
        margin: 10px auto 30px auto;
        padding: 25px;
        width: 95%;
        max-width: none;
    }
    
    .form-wrapper h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-wrapper form {
        margin: 20px 0 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .submit-btn {
        margin-top: 25px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group input[type="text"], 
    .form-group input[type="tel"],
    .form-group select {
        padding: 12px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 16px;
        margin-top: 25px;
    }
    
    .discord-info {
        padding: 20px;
    }
    
    .modal-content {
        width: 400px;
        padding: 5px;
    }
    
    .close {
        top: -40px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }
}