/* =========================================
   LIBERTY CHURCH
   INTERACTION FORM
========================================= */

.interaction-main {
    width: 100%;
}


.interaction-layout {
    width: 100%;
    max-width: 780px;

    margin: 0 auto;
}


.interaction-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e2e7ef;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px
        rgba(20, 39, 68, 0.07);
}


.interaction-card-header {
    padding: 25px 28px;

    border-bottom: 1px solid #e6ebf2;

    background: #ffffff;
}


.interaction-card-header h2 {
    margin: 0 0 5px;

    font-size: 20px;

    letter-spacing: -0.02em;
}


.interaction-card-header p {
    margin: 0;

    color: #697386;

    font-size: 13px;
}


.interaction-form {
    padding: 28px;
}


/* =========================================
   FORM GROUPS
========================================= */

.form-group {
    width: 100%;

    margin-bottom: 23px;
}


.form-group > label {
    display: block;

    margin-bottom: 8px;

    color: #18202f;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================
   INPUTS
========================================= */

.form-group select,
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {

    display: block;

    width: 100%;

    min-width: 0;

    border: 1px solid #d8dfe8;

    border-radius: 11px;

    background-color: #ffffff;

    color: #18202f;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.form-group select,
.form-group input[type="text"],
.form-group input[type="date"] {
    height: 50px;

    padding: 0 14px;
}


.form-group textarea {
    min-height: 135px;

    padding: 14px;

    line-height: 1.5;

    resize: vertical;
}


.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {

    outline: none;

    border-color: #29466f;

    box-shadow:
        0 0 0 3px
        rgba(41, 70, 111, 0.10);
}


/* =========================================
   ROWS
========================================= */

.form-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;
}


/* =========================================
   CARE / CONNECT
========================================= */

.mode-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 14px;
}


.mode-option {
    display: block;

    position: relative;

    cursor: pointer;
}


.mode-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.mode-card {
    min-height: 130px;

    padding: 22px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    gap: 5px;

    border: 2px solid #dde4ec;

    border-radius: 14px;

    background: #ffffff;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


.mode-icon {
    margin-bottom: 4px;

    font-size: 22px;

    font-weight: 700;

    color: #29466f;
}


.mode-card strong {
    font-size: 18px;
}


.mode-card small {
    color: #6e7888;

    font-size: 13px;

    line-height: 1.4;
}


.mode-option:hover .mode-card {
    transform: translateY(-1px);

    border-color: #adb9c8;
}


.mode-option input:checked + .mode-card {
    border-color: #29466f;

    background: #f3f6fa;

    box-shadow:
        0 0 0 3px
        rgba(41, 70, 111, 0.08);
}


/* =========================================
   SEASON
========================================= */

.season-box {
    margin-top: 3px;
    margin-bottom: 26px;

    padding: 17px 18px;

    background: #f7f9fc;

    border: 1px solid #e3e8ef;

    border-radius: 12px;
}


.season-box-label {
    display: block;

    margin-bottom: 4px;

    color: #758094;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.season-box strong {
    font-size: 14px;
}


/* =========================================
   FORM BUTTONS
========================================= */

.form-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 11px;

    padding-top: 24px;

    border-top: 1px solid #e6ebf2;
}


.save-button,
.cancel-button {
    min-height: 50px;

    padding-left: 22px;
    padding-right: 22px;
}


/* =========================================
   FORM MESSAGES
========================================= */

.form-message {
    margin: 0 0 22px;

    padding: 14px 16px;

    border-radius: 11px;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;
}


.form-message-success {
    color: #18613f;

    background: #eef8f3;

    border: 1px solid #cce9da;
}


.form-message-error {
    color: #9d2d24;

    background: #fff2f1;

    border: 1px solid #f0ceca;
}


/* =========================================
   DISABLED BUTTON
========================================= */

button:disabled {
    opacity: .65;

    cursor: wait;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .interaction-layout {
        max-width: 100%;
    }

}


/* =========================================
   PHONE
========================================= */

@media (max-width: 650px) {

    body {
        background: #f5f7fb;
    }


    .app-shell {
        display: block;
    }


    .sidebar {
        min-height: auto;

        padding: 13px 16px;
    }


    .sidebar .brand {
        margin: 0;
    }


    .sidebar .nav {
        display: none;
    }


    .brand-mark {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 20px;
    }


    .main-content.interaction-main {
        width: 100%;

        max-width: none;

        padding: 20px 14px 30px;
    }


    .page-header {
        display: block;

        margin-bottom: 18px;
    }


    .page-header h1 {
        margin-top: 5px;

        font-size: 28px;
    }


    .header-actions {
        display: none;
    }


    .interaction-card {
        border-radius: 14px;
    }


    .interaction-card-header {
        padding: 20px;
    }


    .interaction-card-header h2 {
        font-size: 19px;
    }


    .interaction-form {
        padding: 20px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .mode-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 9px;
    }


    .mode-card {
        min-height: 115px;

        padding: 15px 12px;

        align-items: center;

        text-align: center;
    }


    .mode-icon {
        font-size: 20px;
    }


    .mode-card strong {
        font-size: 16px;
    }


    .mode-card small {
        font-size: 11px;
    }


    .form-group {
        margin-bottom: 20px;
    }


    .form-group select,
    .form-group input[type="text"],
    .form-group input[type="date"] {
        height: 52px;
    }


    .form-group textarea {
        min-height: 125px;
    }


    .form-actions {
        flex-direction: column-reverse;

        align-items: stretch;

        gap: 10px;
    }


    .form-actions .button {
        width: 100%;

        min-height: 52px;
    }

}


/* =========================================
   VERY SMALL PHONE
========================================= */

@media (max-width: 390px) {

    .mode-grid {
        grid-template-columns: 1fr;
    }


    .mode-card {
        min-height: 95px;
    }

}
/* =========================================
   SEARCHABLE STAFF PICKER
========================================= */

.ts-wrapper {
    width: 100%;
}

.ts-control {
    min-height: 50px !important;

    padding: 12px 14px !important;

    border: 1px solid #d8dfe8 !important;

    border-radius: 11px !important;

    background: #ffffff !important;

    box-shadow: none !important;

    font-size: 16px !important;
}

.ts-wrapper.focus .ts-control {
    border-color: #29466f !important;

    box-shadow:
        0 0 0 3px
        rgba(41, 70, 111, 0.10)
        !important;
}

.ts-dropdown {
    border: 1px solid #d8dfe8 !important;

    border-radius: 11px !important;

    overflow: hidden;

    box-shadow:
        0 12px 30px
        rgba(20, 39, 68, 0.12)
        !important;
}

.ts-dropdown .option {
    padding: 11px 14px !important;
}

.ts-dropdown .active {
    background: #f3f6fa !important;

    color: #18202f !important;
}

.staff-search-name {
    font-weight: 700;

    color: #18202f;
}

.staff-search-meta {
    margin-top: 2px;

    color: #758094;

    font-size: 12px;
}