/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3f4f6;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
}

/* --- BUTTON STYLES --- */
.primary-btn {
    padding: 12px 24px;
    background-color: #6366f1; /* Indigo */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

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

/* --- MODAL OVERLAY (Background) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 1000;
    
    /* Animation States: Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    
    /* Center the modal box */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Class to show the modal (toggled by JS) */
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* --- MODAL CONTENT BOX --- */
.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    
    /* Animation: Slide down slightly */
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

/* Slide to normal position when open */
.modal-overlay.open .modal-content {
    transform: translateY(0);
}

/* --- MODAL INTERNALS --- */
.modal-header {
    background: #f9fafb;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.close-icon {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.close-icon:hover {
    color: #ef4444; /* Red on hover */
}

.modal-body {
    padding: 20px;
}

/* --- FORM STYLES --- */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #10b981; /* Emerald Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

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