/* =========================================================
   FORMS
========================================================= */

/* =========================
   FORM GRID
========================= */

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tight-row {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: flex-start;
}


/* =========================
   FORM GROUP
========================= */

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1c2674;
    margin-bottom: 6px;
}


/* =========================
   STANDARD FORM CONTROLS
========================= */

input,
select,
textarea,
button {
    font-family: inherit;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}


/* =========================
   INPUT FOCUS
========================= */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1c2674;
}


/* =========================
   CHECKBOX LABEL
========================= */

.form-group label.checkbox-inline,
.checkbox-inline {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.form-group label.checkbox-inline input,
.checkbox-inline input {
    margin: 0;
    width: auto;
}


/* =========================
   STYLED SELECT
========================= */

.styled-select {
    width: 100%;
    max-width: 400px;
    min-width: 250px;

    padding: 10px 14px;
    margin: 0 0 18px 0;

    border: 1px solid #d7dbe7;
    border-radius: 10px;
    background: #ffffff;

    font-family: inherit;
    font-size: 14px;
    color: #161b4e;

    transition: all .2s ease;
    cursor: pointer;
}

.styled-select:hover {
    border-color: #1c2674;
}

.styled-select:focus {
    outline: none;
    border-color: #1c2674;
}


/* =========================
   SEARCH FORM
========================= */

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.styled-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 250px;
}


/* =========================
   TEXTAREA
========================= */

.notes-box {
    resize: none;
    min-height: 90px;
    max-height: 90px;
    overflow-y: auto;
    width: 100%;
}

.form-group-wide textarea {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
}


/* =========================
   FULL WIDTH
========================= */

.full-width {
    width: 100%;
}


/* =========================
   FILE INPUT
========================= */

.file-input {
    width: 100%;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    margin-bottom: 10px;
}


/* =========================
   LOGIN FORM
========================= */

.login-card input {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-card input:focus {
    border-color: #1c2674;
    outline: none;
}

.login-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}


/* =========================
   EMAIL FORMS
========================= */

.email-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.email-textarea {
    width: 100%;
    min-height: 500px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.6;
    font-family: inherit;
}

#subject {
    font-size: 18px;
    font-weight: 600;
}

#body {
    min-height: 450px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}


/* =========================
   EMAIL EDITOR
========================= */

.email-editor-layout {
    display: grid;
    grid-template-columns: 2fr 320px;
    gap: 30px;
    align-items: start;
}

.email-editor-main .card,
.email-editor-side .card {
    margin-bottom: 25px;
}

.placeholder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.placeholder-btn {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: .2s;
    font-size: 14px;
}

.placeholder-btn:hover {
    background: #f5f8ff;
    border-color: #4b70e2;
}


/* =========================
   BADGE EDIT TABLE INPUTS
========================= */

.badge-edit-table input,
.badge-edit-table select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 13px;
}


/* =========================
   STOCK INPUT
========================= */

.stock-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}


/* =========================
   CAPACITY INPUT
========================= */

.capacity-input {
    width: 80px;
    text-align: center;
}


/* =========================
   SETTING INPUTS
========================= */

.setting-row input {
    max-width: 100px;
}


/* =========================
   TERM DATE FORM
========================= */

.term-date-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.term-date-group > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.term-date-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.term-date-group input {
    width: 100%;
    max-width: 220px;
}

.term-date-group small {
    margin-bottom: 4px;
    font-weight: 600;
    color: #666;
}

.term-year {
    color: #777;
    font-size: 0.9rem;
    font-weight: 500;
}


/* =========================
   FORM HELP
========================= */

.form-help {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}


/* =========================
   FORM BUTTON ROW
========================= */

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}


/* =========================
   TOP AWARDS FORM
========================= */

.top-awards-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.top-awards-form label {
    font-weight: 600;
}

.activity-details-box {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    resize: vertical;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .email-editor-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {

    .form-row,
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

}