/* =====================
   RESET / BASE (PAGE)
===================== */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =====================
   MAIN / FORM LAYOUT
===================== */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
}

form {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px 30px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

/* =====================
   FORM ELEMENTS
===================== */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 16px;
    width: 100%;
    padding: 14px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #1b5e20;
}

/* =====================
   SUCCESS POPUP
===================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.popup-box {
    background: white;
    padding: 30px 35px;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popupFade 0.3s ease;
}

.popup-box h2 {
    margin-top: 0;
    color: #2e7d32;
}

.popup-box p {
    margin: 15px 0 25px;
    color: #333;
}

.popup-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.popup-btn:hover {
    background: #1b5e20;
}

@keyframes popupFade {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
