/* =========================================================================
   [manuscript_submission_form] shortcode styles
   Enqueued site-wide (see functions/manuscriptSubmissionForm.php) since the
   shortcode can be dropped into any page, not just Mini Site pages.
   ========================================================================= */

.msf-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(16, 26, 43, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 26, 43, 0.06);
    font-family: inherit;
}

.msf-section + .msf-section {
    margin-top: 32px;
}

.msf-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16, 26, 43, 0.1);
    font-size: 16px;
    font-weight: 700;
    color: #1a5fb4;
}

.msf-section__icon {
    font-size: 15px;
}

.msf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.msf-field {
    display: flex;
    flex-direction: column;
}

.msf-field--full {
    grid-column: 1 / -1;
}

.msf-field label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #222933;
}

.msf-required {
    color: #d0342c;
    margin-left: 2px;
}

.msf-hint {
    font-weight: 400;
    font-size: 11px;
    color: #8a8f98;
}

.msf-field input[type="text"],
.msf-field input[type="email"],
.msf-field input[type="tel"],
.msf-field select,
.msf-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px;
    color: #222933;
    background: #ffffff;
    border: 1px solid #cfd4da;
    border-radius: 5px;
    font-family: inherit;
}

.msf-field textarea {
    resize: vertical;
}

.msf-field input:focus,
.msf-field select:focus,
.msf-field textarea:focus {
    outline: none;
    border-color: #1a5fb4;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
}

.msf-file-group {
    margin-top: 22px;
}

.msf-file-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.msf-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.msf-file-row input[type="file"] {
    flex: 1 1 auto;
    max-width: 420px;
    font-size: 13px;
}

.msf-remove-file {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    line-height: 24px;
    padding: 0;
    border: 1px solid #cfd4da;
    border-radius: 50%;
    background: #ffffff;
    color: #6b7280;
    font-size: 15px;
    cursor: pointer;
}

.msf-remove-file:hover {
    border-color: #d0342c;
    color: #d0342c;
}

.msf-add-more {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #c0392b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.msf-add-more:hover {
    background: #a5321f;
}

.msf-file-note {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: #8a8f98;
}

.msf-form .g-recaptcha {
    margin-top: 18px;
}

.msf-form .mail-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 13px;
    display: none;
}

.msf-form .mail-status.error {
    display: block;
    background: #fdecea;
    color: #b3261e;
}

.msf-form .mail-status.success {
    display: block;
    background: #e8f5e9;
    color: #1e7d32;
}

.msf-form .loader-icon {
    margin-top: 14px;
}

.msf-submit {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #222933;
    background: #f0ab1c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.msf-submit:hover {
    background: #dc9c14;
}

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

    .msf-form {
        padding: 20px;
    }
}
