/* =========================
   CARD
========================= */
.grammar-card {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* =========================
   TITLE
========================= */
.grammar-title {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #1f2d3d;
    padding: 12px 20px;
    background: linear-gradient(135deg, #eaf3ff, #f5f9ff);
    border-radius: 10px;
    border: 1px solid #dbe7f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* =========================
   FORM
========================= */
.grammar-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================
   FIELD
========================= */
.grammar-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Labels */
.grammar-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
.grammar-field input,
.grammar-field select {
    width: fit-content;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
}

/* Focus */
.grammar-field input:focus,
.grammar-field select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

/* =========================
   BUTTON
========================= */
.grammar-button {
    width: fit-content;
    margin-top: 10px;
    padding: 12px;
    background: #4a90e2;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.grammar-button:hover {
    background: #357abd;
}