/* cf7-bitrix24-styles.css */

.wrap.cf7-bitrix24 {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 220px);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #dfe7f2;
    box-shadow: 0 12px 32px rgba(20, 47, 92, 0.09);
    max-width: 1160px;
    margin-top: 20px;
}

.wrap.cf7-bitrix24 h2 {
    margin-bottom: 16px;
    font-weight: 700;
}

.cf7-bx24-status-banner {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    border: 1px solid transparent;
    font-size: 13px;
}

.cf7-bx24-status-banner.is-active {
    background: #ebfbf2;
    border-color: #b8e9cd;
    color: #0c5b34;
}

.cf7-bx24-status-banner.is-inactive {
    background: #fff6ea;
    border-color: #ffd7a5;
    color: #8a4c00;
}

.cf7-bx24-help-card {
    background: #edf5ff;
    border: 1px solid #cde0ff;
    border-left: 4px solid #2271b1;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 16px;
    color: #16314f;
}

.cf7-bx24-setup-wizard {
    background: #ffffff;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0 14px;
}

.cf7-bx24-setup-wizard h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.cf7-bx24-setup-wizard ol {
    margin: 0 0 0 18px;
}

.cf7-bx24-setup-wizard li {
    margin: 4px 0;
    color: #2f4663;
}

.cf7-bx24-settings-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.cf7-bx24-settings-tabs .button {
    background: #eef3fa;
    color: #1b3b62;
    border: 1px solid #cfdced;
    box-shadow: none;
}

.cf7-bx24-settings-tabs .button.is-active {
    background: linear-gradient(180deg, #2271b1 0%, #185c97 100%);
    color: #fff;
    border-color: #185c97;
}

.wrap.cf7-bitrix24 input[type="text"],
.wrap.cf7-bitrix24 input[type="password"],
.wrap.cf7-bitrix24 input[type="number"],
.wrap.cf7-bitrix24 textarea,
.wrap.cf7-bitrix24 select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 12px;
    border: 1px solid #ccd8e8;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.wrap.cf7-bitrix24 input[type="text"]:focus,
.wrap.cf7-bitrix24 input[type="password"]:focus,
.wrap.cf7-bitrix24 input[type="number"]:focus,
.wrap.cf7-bitrix24 textarea:focus,
.wrap.cf7-bitrix24 select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.18);
    outline: none;
}

.wrap.cf7-bitrix24 input.is-valid {
    border-color: #1f9d55;
    box-shadow: 0 0 0 2px rgba(31, 157, 85, 0.12);
}

.wrap.cf7-bitrix24 input.is-invalid {
    border-color: #d63638;
    box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.12);
}

.cf7-bx24-inline-error {
    display: block;
    margin-top: -6px;
    margin-bottom: 6px;
    color: #b32d2e;
}

.wrap.cf7-bitrix24 .submit-button,
.cf7-bx24-author .button,
.cf7-bx24-mapping-toolbar .button {
    background: linear-gradient(180deg, #2271b1 0%, #185c97 100%);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.wrap.cf7-bitrix24 .submit-button:hover,
.cf7-bx24-author .button:hover,
.cf7-bx24-mapping-toolbar .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(34, 113, 177, 0.24);
}

.cf7-bitrix24 table.widefat.fixed,
.wrap.cf7-bitrix24 table.form-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    width: 100%;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    overflow: hidden;
}

.cf7-bitrix24 table.widefat.fixed th,
.cf7-bitrix24 table.widefat.fixed td,
.wrap.cf7-bitrix24 table.form-table th,
.wrap.cf7-bitrix24 table.form-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f8;
    vertical-align: top;
}

.cf7-bitrix24 table.widefat.fixed tr:nth-child(odd),
.wrap.cf7-bitrix24 table.form-table tr:nth-child(odd) {
    background-color: #fbfdff;
}

.cf7-bx24-mapping-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
    flex-wrap: wrap;
}

.cf7-bx24-mapping-toolbar input[type="search"] {
    max-width: 420px;
    margin: 0;
}

.cf7-bx24-map-row {
    transition: background-color 0.2s ease;
}

.cf7-bx24-map-row:hover {
    background-color: #f2f8ff !important;
}

.cf7-bx24-author {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(180deg, #f4f9ff 0%, #eaf3ff 100%);
    border-left: 4px solid #2271b1;
    border-radius: 10px;
}

.cf7-bx24-author h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.cf7-bx24-author p {
    margin-top: 0;
    margin-bottom: 12px;
    color: #3c4b5f;
    line-height: 1.45;
}

.cf7-bx24-author .button {
    display: inline-block;
    margin-top: 6px;
}

.nav-tab-wrapper .nav-tab-disabled {
    background-color: #f1f1f1;
    color: #a7aaad;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
    margin-right: 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    display: inline-block;
    border-radius: 3px 3px 0 0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: -1px;
}
