.dsp-followup-action {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 76px;
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid #078d9c;
    border-radius: 7px;
    background: #078d9c;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.dsp-followup-action:hover,
.dsp-followup-action:focus {
    border-color: #056e79;
    background: #056e79;
    color: #fff !important;
}

.dotmobi-followup-front {
    width: min(1120px, 100%);
    margin: 18px auto 45px;
    color: #102a43;
}

.dotmobi-followup-front-header,
.dotmobi-front-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dotmobi-followup-front-header {
    margin-bottom: 18px;
}

.dotmobi-followup-front h2,
.dotmobi-followup-front h3 {
    margin: 0;
    color: #102a43;
}

.dotmobi-followup-front h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.dotmobi-followup-front h3 {
    font-size: 21px;
}

.dotmobi-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #078d9c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dotmobi-front-card {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
}

.dotmobi-lead-chip {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e6f6f8;
    color: #056e79;
    font-size: 13px;
    font-weight: 700;
}

.dotmobi-front-lead-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 16px;
    padding: 13px 15px;
    border-left: 4px solid #078d9c;
    border-radius: 7px;
    background: #f4fafb;
}

.dotmobi-front-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 20px;
}

.dotmobi-front-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dotmobi-front-field-full,
.dotmobi-front-form-actions {
    grid-column: 1 / -1;
}

.dotmobi-front-field label {
    color: #243b53;
    font-size: 14px;
    font-weight: 700;
}

.dotmobi-front-field label span {
    color: #bd1e1e;
}

.dotmobi-front-field input,
.dotmobi-front-field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #bcccdc;
    border-radius: 8px;
    background: #fff;
    color: #102a43;
    font: inherit;
}

.dotmobi-front-field input:focus,
.dotmobi-front-field textarea:focus {
    border-color: #078d9c;
    outline: 2px solid rgba(7, 141, 156, .15);
}

.dotmobi-front-field input[readonly] {
    background: #f0f4f8;
}

.dotmobi-front-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.dotmobi-front-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}

.dotmobi-front-button-primary {
    border-color: #078d9c;
    background: #078d9c;
    color: #fff !important;
}

.dotmobi-front-button-primary:hover,
.dotmobi-front-button-primary:focus {
    border-color: #056e79;
    background: #056e79;
    color: #fff !important;
}

.dotmobi-front-button-secondary {
    border-color: #9fb3c8;
    background: #fff;
    color: #243b53 !important;
}

.dotmobi-front-button-secondary:hover,
.dotmobi-front-button-secondary:focus {
    border-color: #078d9c;
    color: #056e79 !important;
}

.dotmobi-front-alert {
    margin: 12px 0 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 650;
}

.dotmobi-front-alert-success {
    border: 1px solid #9ad4aa;
    background: #edf9f0;
    color: #176b2c;
}

.dotmobi-front-alert-error {
    border: 1px solid #e8a8a8;
    background: #fff0f0;
    color: #9b1c1c;
}

.dotmobi-front-history h3 {
    margin-bottom: 16px;
}

.dotmobi-front-table-wrap {
    overflow-x: auto;
}

.dotmobi-front-table {
    width: 100%;
    border-collapse: collapse;
}

.dotmobi-front-table th,
.dotmobi-front-table td {
    padding: 12px 11px;
    border: 1px solid #d9e2ec;
    vertical-align: top;
    text-align: left;
}

.dotmobi-front-table th {
    background: #f0f4f8;
    color: #243b53;
    font-size: 13px;
}

.dotmobi-front-small-link {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #078d9c;
    border-radius: 6px;
    color: #056e79 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.dotmobi-front-empty {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: #f0f4f8;
    color: #627d98;
    text-align: center;
}

@media (max-width: 780px) {
    .dotmobi-followup-front-header,
    .dotmobi-front-card-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .dotmobi-front-card {
        padding: 17px;
    }

    .dotmobi-front-form {
        grid-template-columns: 1fr;
    }

    .dotmobi-front-field-full,
    .dotmobi-front-form-actions {
        grid-column: auto;
    }

    .dotmobi-front-button {
        width: 100%;
        box-sizing: border-box;
    }

    .dotmobi-front-table thead {
        display: none;
    }

    .dotmobi-front-table,
    .dotmobi-front-table tbody,
    .dotmobi-front-table tr,
    .dotmobi-front-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .dotmobi-front-table tr {
        margin-bottom: 12px;
        border: 1px solid #d9e2ec;
        border-radius: 8px;
        overflow: hidden;
    }

    .dotmobi-front-table td {
        padding-left: 42%;
        position: relative;
        border-width: 0 0 1px;
    }

    .dotmobi-front-table td:last-child {
        border-bottom: 0;
    }

    .dotmobi-front-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 35%;
        color: #486581;
        font-weight: 700;
    }
}

.dotmobi-followup-direct-shell {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 32px));
    min-height: 420px;
    margin: 30px auto 55px;
}

@media (max-width: 640px) {
    .dotmobi-followup-direct-shell {
        width: min(100% - 20px, 1180px);
        margin-top: 18px;
    }
}

/* Version 1.5.0: standard action selector and stronger submit styling. */
.dotmobi-front-field select {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0;
    padding: 11px 42px 11px 12px;
    border: 1px solid #8ea9bd;
    border-radius: 8px;
    background-color: #fff;
    color: #102a43;
    font: inherit;
    line-height: 1.35;
}

.dotmobi-front-field select:focus {
    border-color: #007f8c;
    outline: 3px solid rgba(0, 127, 140, .18);
}

button.dotmobi-front-button-primary,
.dotmobi-front-form-actions .dotmobi-front-button-primary {
    min-width: 190px;
    min-height: 48px;
    border: 2px solid #006f7a !important;
    background: #007f8c !important;
    box-shadow: 0 5px 12px rgba(0, 95, 105, .24);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    opacity: 1 !important;
    text-shadow: none;
}

button.dotmobi-front-button-primary:hover,
button.dotmobi-front-button-primary:focus,
.dotmobi-front-form-actions .dotmobi-front-button-primary:hover,
.dotmobi-front-form-actions .dotmobi-front-button-primary:focus {
    border-color: #004f58 !important;
    background: #005f69 !important;
    box-shadow: 0 6px 14px rgba(0, 79, 88, .30);
    color: #ffffff !important;
    transform: translateY(-1px);
}

button.dotmobi-front-button-primary:active,
.dotmobi-front-form-actions .dotmobi-front-button-primary:active {
    background: #004f58 !important;
    box-shadow: 0 2px 6px rgba(0, 79, 88, .25);
    transform: translateY(0);
}

/* Version 1.6.0: force Follow-up Action to render as a compact native dropdown. */
.dotmobi-followup-front select[name="followup_action"],
.dotmobi-followup-direct-shell select[name="followup_action"],
select.dotmobi-followup-action-select {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 48px 0 15px !important;
    border: 2px solid #2f6fa3 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #18324a !important;
    font: inherit !important;
    line-height: 50px !important;
    opacity: 1 !important;
    visibility: visible !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
}

.dotmobi-followup-front select[name="followup_action"]:focus,
.dotmobi-followup-direct-shell select[name="followup_action"]:focus,
select.dotmobi-followup-action-select:focus {
    border-color: #008a96 !important;
    outline: 3px solid rgba(0, 138, 150, .18) !important;
}

/* Version 1.7.0: optional special follow-up comment/remark field. */
.dotmobi-front-field textarea[name="special_comment"] {
    min-height: 120px;
    resize: vertical;
}
