﻿.create-customer-page {
    max-width: 1420px;
    margin: 0 auto;
/*    padding: 12px 8px 28px;*/
}

.page-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

.back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
}

.page-title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.page-subtitle {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}

.create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 28px;
    align-items: start;
}

.fm-card {
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}

.fm-card-body {
    padding: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #1f2a44;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

    .section-title small {
        font-weight: 500;
        text-transform: none;
        color: #6b7280;
        letter-spacing: 0;
    }

.field-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #1f2a44;
    margin: 0;
}

    .field-label .field-icon {
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #515b76;
        flex: 0 0 auto;
    }

.required-mark {
    color: #ef4444;
    font-weight: 700;
}

.input-with-remove {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .input-with-remove .form-control,
    .input-with-remove .form-select {
        flex: 1;
    }

.btn-remove-field {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
}

    .btn-remove-field:hover {
        color: #ef4444;
        border-color: #fecaca;
        background: #fff7f7;
    }

.face-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2a44;
    font-weight: 600;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .upload-box .form-control {
        max-width: 280px;
    }

.upload-note {
    color: #6b7280;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

/*.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .25);
}*/

.btn-create,
.btn-cancel {
    min-height: 48px;
    min-width: 140px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.add-panel-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #1f2a44;
    text-transform: uppercase;
}

.add-panel-subtitle {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}

.field-group {
    margin-bottom: 26px;
}

.field-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 12px;
}

.group-badge {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #1677ff;
    font-size: 14px;
}

    .group-badge.green {
        background: #ecfdf3;
        color: #22c55e;
    }

    .group-badge.purple {
        background: #f3efff;
        color: #7c3aed;
    }

.add-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.add-field-btn {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #d9dee8;
    background: #fff;
    color: #1f2a44;
    font-weight: 700;
    text-align: left;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .add-field-btn:hover {
        border-color: #6366f1;
        color: #4f46e5;
        background: #f8f9ff;
    }

    .add-field-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
        background: #f9fafb;
    }

.tip-box {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 12px;
    padding: 16px;
    color: #41516b;
    margin-top: 10px;
}

    .tip-box strong {
        color: #1565d8;
    }

@media (max-width: 1200px) {
    .create-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fm-card-body {
        padding: 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .add-buttons {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 1200px) {
    .create-grid {
        grid-template-columns: 1fr;
    }

    .add-panel-sticky {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

