/* Custom Popup Styles */
.custom-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    z-index: 10;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #000;
}

.popup-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

.popup-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: center;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#program-lainnya {
    margin-top: 10px;
    display: none;
}

.info-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #fdcb6e;
    margin: 25px 0;
    text-align: center;
}

.info-box p {
    margin: 0;
    color: #856404;
    font-weight: 600;
}

.discount {
    font-size: 28px;
    font-weight: 800;
    color: #e74c3c;
    margin: 10px 0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

button[type="submit"] {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f639c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button[type="submit"]:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

#form-message {
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        width: 95%;
    }
    
    .popup-content h3 {
        font-size: 20px;
    }
    
    .discount {
        font-size: 24px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.popup-content {
    animation: fadeIn 0.3s ease-out;
}