/* =========================================================
   EDIT PUBLICATION FORM
   ========================================================= */

.publisher-edit-form {
    width: 100%;
}

.publisher-form-group {
    margin-bottom: 22px;
}

.publisher-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #333;

    font-size: 14px;
    font-weight: 600;
}

.publisher-form-group label span {
    color: #dc3545;
}

.publisher-form-group input,
.publisher-form-group textarea {
    display: block;

    width: 100%;

    padding: 11px 13px;

    background: #fff;

    border: 1px solid #ced4da;

    border-radius: 8px;

    color: #333;

    font-size: 14px;

    box-sizing: border-box;
}

.publisher-form-group textarea {
    min-height: 220px;

    resize: vertical;

    line-height: 1.7;
}

.publisher-form-group input:focus,
.publisher-form-group textarea:focus {
    outline: none;

    border-color: #198754;

    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}


/* =========================================================
   FORM ROW
   ========================================================= */

.publisher-form-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.publisher-form-row.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* =========================================================
   EXISTING FILE
   ========================================================= */

.existing-publication-file {
    display: flex;

    align-items: center;

    margin-bottom: 20px;

    padding: 15px 18px;

    background: #f8f9fa;

    border: 1px solid #e4e7eb;

    border-radius: 9px;
}

.existing-publication-file strong {
    display: block;

    margin-bottom: 4px;

    color: #333;

    font-size: 14px;
}

.existing-publication-file small {
    display: block;

    color: #777;

    word-break: break-all;
}


/* =========================================================
   HELP TEXT
   ========================================================= */

.publisher-form-help {
    display: block;

    margin-top: 6px;

    color: #888;

    font-size: 12px;
}


/* =========================================================
   EDIT ACTIONS
   ========================================================= */

.publisher-edit-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid #e9ecef;
}

.publisher-cancel-btn,
.publisher-resubmit-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}

.publisher-cancel-btn {
    background: #f1f3f5;

    color: #495057;
}

.publisher-cancel-btn:hover {
    background: #e9ecef;

    color: #212529;

    text-decoration: none;
}

.publisher-resubmit-btn {
    border: 0;

    background: #198754;

    color: #fff;
}

.publisher-resubmit-btn:hover {
    background: #157347;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .publisher-form-row,
    .publisher-form-row.three-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .publisher-edit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .publisher-cancel-btn,
    .publisher-resubmit-btn {
        width: 100%;
    }

}