/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 30px; /* cleaner than margin-left */
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007BFF;
}

/* underline animation */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   FORM SECTION
========================= */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

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

.form-container h1 {
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 30px;
}

/* Form Layout */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 15px;
    font-weight: 600;
    font-size: 14px;
}

input,
select,
textarea {
    margin-top: 6px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Button */
button {
    margin-top: 25px;
    padding: 14px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

button:hover {
    background: #0056b3;
}

button:active {
    transform: scale(0.98);
}

/* Success Message */
.success-message {
    margin-top: 20px;
    padding: 15px;
    background: #e6f4ea;
    color: #2e7d32;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 25px;
    }

    nav {
        margin-top: 12px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .form-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    nav a {
        padding: 5px 0;
    }
}
