#fax-template-wrapper {
    max-width: 980px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.ft-card {
    background: #ffffff;
    border: 1px solid #d5d7db;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ft-card h2 {
    margin-top: 0;
    color: #1a1a1a;
}

#fax-template-form {
    margin-top: 20px;
}

.ft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ft-field {
    margin-bottom: 14px;
}

.ft-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.ft-field input[type="text"],
.ft-field input[type="date"],
.ft-field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #b8bcc2;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.ft-field textarea {
    min-height: 110px;
    resize: vertical;
}

.ft-field input:focus,
.ft-field textarea:focus {
    outline: none;
    border-color: #0b69c2;
    box-shadow: 0 0 0 3px rgba(11, 105, 194, 0.12);
}

.ft-fieldset {
    border: 1px solid #d5d7db;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 18px;
}

.ft-fieldset legend {
    font-weight: 700;
    padding: 0 8px;
}

.ft-check {
    display: block;
    margin: 8px 0;
    line-height: 1.45;
    cursor: pointer;
}

.ft-check input {
    margin-right: 8px;
}

.ft-check-inline {
    display: inline-block;
    margin-right: 18px;
}

.ft-radio-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.ft-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ft-small {
    font-size: 13px;
    color: #444;
    margin-top: 8px;
    margin-bottom: 0;
}

#ft-submit-btn {
    width: 100%;
    border: 0;
    background: #0b69c2;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 10px;
}

#ft-submit-btn:hover:not(:disabled) {
    background: #085299;
}

#ft-submit-btn:disabled {
    background: #7f8b99;
    cursor: not-allowed;
}

#ft-status {
    margin-top: 16px;
}

.ft-notice {
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.ft-info {
    background: #e8f3ff;
    color: #0b5aa5;
    border: 1px solid #b9dcff;
}

.ft-success {
    background: #eaf8ef;
    color: #166534;
    border: 1px solid #bfe8cd;
}

.ft-error {
    background: #fdecec;
    color: #b42318;
    border: 1px solid #f6bcbc;
}

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