﻿/* =========================================================
   Gedian Sports - Referee Profile Edit
   ========================================================= */

.referee-profile-edit-page {
    min-height: calc(100vh - 70px);
    background: radial-gradient( circle at top right, rgba(91, 140, 59, .11), transparent 30%), linear-gradient( 180deg, #f4f8f2 0%, #eef3f6 100%);
    color: #071a33;
    font-family: "Tajawal", sans-serif;
}

.referee-profile-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding: 26px 28px;
    border: 1px solid #dfe7df;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(7, 26, 51, .07);
}

.referee-profile-edit-eyebrow {
    color: #5b8c3b;
    font-size: .72rem;
    font-weight: 900;
}

.referee-profile-edit-header h1 {
    margin: 5px 0 7px;
    color: #071a33;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 900;
}

.referee-profile-edit-header p {
    margin: 0;
    color: #7d8997;
    font-size: .84rem;
    line-height: 1.7;
}

.referee-profile-edit-header .btn {
    min-height: 42px;
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.referee-edit-section-card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #dfe7df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 26, 51, .07);
}

.referee-edit-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 21px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8ede9;
}

.referee-edit-section-number {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #5b8c3b;
    color: #fff;
    font-size: .86rem;
    font-weight: 900;
}

.referee-edit-section-heading h2 {
    margin: 0;
    color: #071a33;
    font-size: 1.03rem;
    font-weight: 900;
}

.referee-edit-section-heading p {
    margin: 5px 0 0;
    color: #83909d;
    font-size: .73rem;
    line-height: 1.65;
}

.referee-profile-edit-page .form-label {
    margin-bottom: 7px;
    color: #2d4359;
    font-size: .77rem;
}

.referee-profile-edit-page .form-control,
.referee-profile-edit-page .form-select {
    min-height: 44px;
    border: 1px solid #d7e0d8;
    border-radius: 11px;
    background-color: #fcfdfc;
    color: #071a33;
    font-size: .8rem;
    box-shadow: none;
}

.referee-profile-edit-page textarea.form-control {
    min-height: 118px;
    resize: vertical;
}

.referee-profile-edit-page .form-control:focus,
.referee-profile-edit-page .form-select:focus {
    border-color: #6f9f52;
    background: #fff;
    box-shadow: 0 0 0 .18rem rgba(91, 140, 59, .13);
}

.referee-profile-edit-page .form-check-input:checked {
    border-color: #5b8c3b;
    background-color: #5b8c3b;
}

.referee-edit-information-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 19px;
    padding: 14px 16px;
    border: 1px solid #eadba6;
    border-radius: 14px;
    background: #fff9e8;
}

    .referee-edit-information-note strong {
        padding: 5px 9px;
        border-radius: 999px;
        background: #ffdc73;
        color: #6c5100;
        font-size: .7rem;
        white-space: nowrap;
    }

    .referee-edit-information-note p {
        margin: 0;
        color: #735e1b;
        font-size: .76rem;
        line-height: 1.75;
    }

.referee-license-edit-panel {
    padding: 18px;
    border: 1px solid #dfe7df;
    border-radius: 16px;
    background: linear-gradient( 180deg, #fff, #fafcf9);
    transition: opacity .2s ease;
}

    .referee-license-edit-panel.is-disabled {
        opacity: .58;
    }

.referee-license-edit-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

    .referee-license-edit-title h3 {
        margin: 0;
        color: #31551d;
        font-size: .92rem;
        font-weight: 900;
    }

    .referee-license-edit-title .form-check-label {
        color: #4d5f70;
        font-size: .76rem;
    }

.referee-media-edit-box {
    height: 100%;
    padding: 16px;
    border: 1px solid #e0e7e2;
    border-radius: 16px;
    background: #fafcf9;
}

    .referee-media-edit-box h3 {
        margin: 0 0 14px;
        color: #071a33;
        font-size: .88rem;
        font-weight: 900;
    }

.referee-media-edit-preview,
.referee-media-edit-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 13px;
}

.referee-media-edit-preview {
    display: block;
    object-fit: cover;
    background: #edf2ee;
}

.referee-media-edit-placeholder {
    display: grid;
    place-items: center;
    border: 1px dashed #cbd8ca;
    background: #f4f8f2;
    color: #8b979f;
    font-size: .75rem;
    text-align: center;
}

.referee-media-edit-box .form-text {
    margin-top: 7px;
    color: #88949f;
    font-size: .66rem;
    line-height: 1.5;
}

.referee-profile-edit-actions {
    position: sticky;
    z-index: 25;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding: 15px 18px;
    border: 1px solid #dfe7df;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -7px 24px rgba(7, 26, 51, .09);
    backdrop-filter: blur(8px);
}

    .referee-profile-edit-actions .btn {
        min-height: 43px;
        border-radius: 11px;
        font-size: .8rem;
        font-weight: 900;
    }

.referee-profile-edit-page .btn-primary {
    border-color: #5b8c3b;
    background: #5b8c3b;
}

    .referee-profile-edit-page .btn-primary:hover {
        border-color: #48742f;
        background: #48742f;
    }

.field-validation-error {
    display: block;
    margin-top: 6px;
    font-size: .68rem;
}

@media (max-width: 767.98px) {
    .referee-profile-edit-header {
        align-items: stretch;
        flex-direction: column;
        border-radius: 17px;
    }

        .referee-profile-edit-header .btn {
            align-self: flex-start;
        }

    .referee-edit-section-card {
        padding: 18px;
        border-radius: 16px;
    }

    .referee-license-edit-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .referee-profile-edit-actions {
        flex-direction: column;
    }

        .referee-profile-edit-actions .btn {
            width: 100%;
        }
}
