/* ============================================
   SUBMIT MANUSCRIPT PAGE - MODERN DESIGN
   ============================================ */

/* Page Wrapper */
.submit-manuscript-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 0;
}

/* Main Title Section */
.jrnl_body_main_title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.jrnl_body_main_title h3 {
    color: #2c3e50;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.jrnl_body_main_title h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
}

/* Form Container */
.gen-content.brochure-form {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.gen-content.brochure-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.gen-content.brochure-form .well {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 40px;
    margin: 0;
}

/* Flash Messages */
.gen-content.brochure-form p {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Journal Info Section */
.submit_manuscript_journal_info {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.submit_manuscript_journal_info .form-control {
    background: #fff;
    border: none;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
}

/* Section Titles */
.submit_manuscript_sub_titles {
    margin: 35px 0 25px;
    position: relative;
}

.submit_manuscript_sub_titles h3.su-man-smt {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 5px solid #10b981;
    border-radius: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    display: block;
    width: 100%;
}

.form-group label {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    width: 100%;
}

.form-group label.notrequired {
    font-weight: 500;
}

.form-group label .red {
    color: #e74c3c;
    margin-left: 3px;
    font-weight: 700;
}

/* Ensure form controls take full width of their container */
.form-group .form-control {
    width: 100%;
    display: block;
}

/* Form Controls */
.form-control {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: #fff;
    width: 100%;
    height: auto;
    min-height: 45px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
    background: #fff;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 14px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    padding: 12px 18px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    height: 45px;
}

/* File Upload */
.attach-file {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px dashed #10b981;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-file:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #047857;
}

.attach-file input[type="file"] {
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.upload-alert {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
    text-align: left;
}

.upload-alert span {
    color: #e74c3c;
    font-weight: 600;
}

/* Error Messages */
.text-danger_form_error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* Submit Button */
.btn.btn-info.header-btn {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.btn.btn-info.header-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn.btn-info.header-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn.btn-info.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn.btn-info.header-btn:active {
    transform: translateY(-1px);
}

/* Documentation Section */
.submit-manuscript-doc {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-manuscript-doc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.page_sub_title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.page_sub_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.doc-section-title {
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid #10b981;
}

.arrow-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.arrow-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
}

.arrow-list li::before {
    content: none;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10b981;
    font-size: 16px;
}

.arrow-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

.arrow-list ul.arrow-list {
    margin-top: 10px;
    margin-left: 20px;
}

.highligh-link {
    color: #10b981;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.submit-manuscript-doc p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.submit-manuscript-doc p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Row Styling */
.row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

.row>[class*="col-"] {
    padding: 0 15px;
    float: none;
}

/* Ensure proper column widths */
.col-xs-6 {
    width: 50%;
    float: left;
}

.col-xs-12 {
    width: 100%;
    float: left;
}

/* Fix form alignment */
.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-horizontal .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .jrnl_body_main_title h3 {
        font-size: 28px;
    }

    .gen-content.brochure-form .well {
        padding: 30px 20px;
    }

    .submit_manuscript_sub_titles h3.su-man-smt {
        font-size: 20px;
        padding: 12px 15px;
    }

    .submit-manuscript-doc {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .submit-manuscript-wrapper {
        padding: 20px 0;
    }

    .jrnl_body_main_title {
        margin-bottom: 25px;
    }

    .jrnl_body_main_title h3 {
        font-size: 24px;
    }

    .gen-content.brochure-form .well {
        padding: 25px 15px;
    }

    .form-group.col-xs-6,
    .col-xs-6 {
        width: 100%;
        float: none;
        padding-left: 15px;
        padding-right: 15px;
    }

    .form-group.col-xs-12,
    .col-xs-12 {
        width: 100%;
        float: none;
    }

    .submit_manuscript_sub_titles h3.su-man-smt {
        font-size: 18px;
    }

    .btn.btn-info.header-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    .doc-section-title {
        font-size: 18px;
    }

    .page_sub_title {
        font-size: 24px;
    }

    .row {
        display: block;
    }
}

@media (max-width: 576px) {
    .form-control {
        padding: 10px 15px;
        font-size: 13px;
    }

    .submit_manuscript_journal_info {
        padding: 15px;
    }

    .arrow-list li {
        font-size: 14px;
        padding-left: 25px;
    }
}

/* Additional Enhancements */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Proper Bootstrap Grid Override */
.col-xs-1,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9,
.col-xs-10,
.col-xs-11,
.col-xs-12 {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.col-xs-12 {
    width: 100%;
}

.col-xs-6 {
    width: 50%;
}

@media (min-width: 768px) {
    .col-xs-6 {
        float: left;
    }

    .col-xs-12 {
        float: left;
    }
}

/* Form Horizontal Fixes */
.form-horizontal .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.form-horizontal .row::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure consistent input heights */
input.form-control,
select.form-control {
    height: 45px;
    line-height: 1.5;
}

textarea.form-control {
    height: auto;
}

/* Better label alignment */
.control-label {
    padding-top: 0;
    margin-bottom: 8px;
    text-align: left;
}

/* Focus States for Accessibility */
.form-control:focus,
.btn.btn-info.header-btn:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Loading State */
.form-control[disabled] {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .submit-manuscript-wrapper {
        background: #fff;
    }

    .gen-content.brochure-form,
    .submit-manuscript-doc {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn.btn-info.header-btn {
        display: none;
    }
}

/* Success/Error Indicators */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #e74c3c;
}

/* Hover Effects on Mobile */
@media (hover: none) {
    .attach-file:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
        border-color: #10b981;
    }

    .btn.btn-info.header-btn:hover {
        transform: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}