/*
 ASEMANEEHA PHASE 461
 MARTYR EDIT FORM
 VISUAL ONLY
*/

.edit_martyr {
    --asem-edit-navy: #17365d;
    --asem-edit-text: #263b53;
    --asem-edit-border: #e1e8f0;
    --asem-edit-bg: #f6f8fc;

    direction: rtl;
    color: var(--asem-edit-text);
    background: var(--asem-edit-bg);
    border-radius: 22px;
    padding: 28px;
    max-width: 1450px;
    margin: 0 auto 40px;
    box-sizing: border-box;
}

/* Form heading */
.edit_martyr > div > div.flex.justify-center {
    background: #fff;
    border: 1px solid var(--asem-edit-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(23,54,93,.04);
}

.edit_martyr > div > div.flex.justify-center p {
    color: var(--asem-edit-navy);
    font-size: 23px;
    font-weight: 800;
}

/* Section headings */
.edit_martyr p.text-xl {
    color: var(--asem-edit-navy);
    font-weight: 750;
    line-height: 1.9;
}

/* Form fields */
.edit_martyr input[type="text"],
.edit_martyr input[type="number"],
.edit_martyr input[type="url"],
.edit_martyr input[type="date"],
.edit_martyr select,
.edit_martyr textarea {
    box-sizing: border-box;
    max-width: 100%;
    background: #ffffff !important;
    color: #263b53 !important;
    border: 1px solid #d9e3ed !important;
    border-radius: 11px !important;
    padding: 11px 13px !important;
    font-size: 14px;
    line-height: 1.8;
    transition: border-color .2s, box-shadow .2s;
}

.edit_martyr input[type="text"]:focus,
.edit_martyr input[type="number"]:focus,
.edit_martyr input[type="url"]:focus,
.edit_martyr input[type="date"]:focus,
.edit_martyr select:focus,
.edit_martyr textarea:focus {
    outline: none;
    border-color: #527da8 !important;
    box-shadow: 0 0 0 3px rgba(82,125,168,.11);
}

.edit_martyr input::placeholder,
.edit_martyr textarea::placeholder {
    color: #8998aa;
    opacity: 1;
}

/* Field labels */
.edit_martyr .relative.w-full > p {
    color: #344960 !important;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 7px;
}

/* Long text fields */
.edit_martyr textarea {
    min-height: 170px;
    resize: vertical;
}

/* Preserve disabled text sections */
.edit_martyr textarea.pointer-events-none {
    opacity: .45;
    background: #edf1f5 !important;
}

/* Checkboxes */
.edit_martyr input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #17365d;
}

/* Select controls */
.edit_martyr select {
    cursor: pointer;
}

/* Media */
.edit_martyr img,
.edit_martyr video {
    max-width: 100%;
}

.edit_martyr video {
    border-radius: 12px;
}

.edit_martyr audio {
    max-width: 100%;
}

/* Links */
.edit_martyr a {
    transition: opacity .2s;
}

.edit_martyr a:hover {
    opacity: .88;
}

/* Save button: only the final direct button */
.edit_martyr > div > button:last-child {
    background: #17365d !important;
    color: #fff !important;
    border: 1px solid #17365d !important;
    border-radius: 12px !important;
    min-height: 48px;
    padding: 12px 32px !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(23,54,93,.13);
}

.edit_martyr > div > button:last-child:hover:not(:disabled) {
    background: #244b78 !important;
}

.edit_martyr button:disabled {
    cursor: not-allowed;
}

/* Tablet */
@media (max-width: 900px) {
    .edit_martyr {
        padding: 18px;
        border-radius: 16px;
    }

    .edit_martyr .grid {
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .edit_martyr {
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .edit_martyr > div > div.flex.justify-center {
        padding: 14px;
        margin-bottom: 18px;
    }

    .edit_martyr > div > div.flex.justify-center p {
        font-size: 19px;
    }

    .edit_martyr .grid {
        grid-template-columns: minmax(0,1fr) !important;
        gap: 14px;
    }

    .edit_martyr input[type="text"],
    .edit_martyr input[type="number"],
    .edit_martyr input[type="url"],
    .edit_martyr input[type="date"],
    .edit_martyr select,
    .edit_martyr textarea {
        width: 100%;
        font-size: 14px;
    }

    .edit_martyr textarea {
        min-height: 150px;
    }
}