/* ========== RESET ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f7fb;
    color: #333;
    line-height: 1.6;
}

/* ========== PAGE LAYOUT ========== */
.container {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 20px;
}

h1 {
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 700;
}

/* ========== FORM CARD ========== */
form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

article {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ========== LABELS ========== */
label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* ========== INPUTS ========== */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    background: #fafafa;
    transition: all 0.25s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #0d6efd;;
    box-shadow: 0 0 0 1px #0d6efd;
}

/* ========== BUTTON ========== */
button[type="submit"] {
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #0d6efd;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px #0d6efd;
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ========== ALERT MESSAGES ========== */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* ========== FOOTER INFO ========== */
p {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
    .container {
        margin: 30px auto;
    }

    form {
        padding: 22px;
    }

    h1 {
        font-size: 26px;
    }
}
