/* ============================================
   SUBMIT MANUSCRIPT PAGE - COMPLETE STYLES
   ============================================ */

/* ============================================
   SUBMISSION PROCESS TIMELINE
   ============================================ */
.process-section {
    background: linear-gradient(160deg, #FFFBF5 0%, #FFF5E6 100%);
    padding: var(--section-padding) 0;
}

.process-timeline {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 var(--space-2);
    min-width: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-border), var(--color-primary));
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.process-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    color: white;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
    transition: transform 0.3s ease;
}

.process-step:hover .process-step-number {
    transform: scale(1.1);
}

.process-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.process-step-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ============================================
   CHECKLIST SECTION
   ============================================ */
.checklist-section {
    background: var(--color-white);
    padding: var(--section-padding) 0;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.checklist-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.checklist-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.checklist-card .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto var(--space-3);
    box-shadow: 0 4px 15px rgba(255,107,53,0.2);
}

.checklist-card .service-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.checklist-card .service-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-6) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    text-align: center;
}

.trust-item {
    padding: var(--space-4);
}

.trust-icon {
    font-size: 40px;
    margin-bottom: var(--space-2);
    display: block;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: var(--space-1);
}

.trust-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   MAIN SUBMISSION FORM (INLINE)
   ============================================ */
.submission-section {
    background: linear-gradient(170deg, #E8F5E9 0%, #FFF8E1 50%, #FFFBF5 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.submission-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.submission-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-7) var(--space-6);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.submission-card-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.submission-card-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.submission-card-header p {
    color: var(--color-text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: var(--space-1);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--color-bg-warm);
    color: var(--color-text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--color-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(159, 161, 255, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Validation Messages */
.validation-message {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.validation-message.visible {
    display: flex;
}

.validation-message::before {
    content: '⚠️';
    font-size: 12px;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.error {
    color: #e74c3c;
}

/* ============================================
   DRAG & DROP FILE UPLOAD
   ============================================ */
.file-upload-zone {
    position: relative;
    width: 100%;
    padding: var(--space-6);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-lg);
    background: rgba(159, 161, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-zone:hover {
    background: rgba(159, 161, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(159, 161, 255, 0.15);
}

.file-upload-zone.drag-over {
    background: rgba(159, 161, 255, 0.15);
    border-color: var(--color-primary-dark);
    border-style: solid;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(159, 161, 255, 0.2);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: var(--space-2);
    display: block;
}

.file-upload-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.file-upload-hint {
    font-size: 13px;
    color: var(--color-text-muted);
}

.file-upload-preview {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: rgba(76, 175, 80, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.file-upload-preview.visible {
    display: flex;
}

.file-preview-name {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.file-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* ============================================
   SUBMIT BUTTON & STATES
   ============================================ */
.submit-btn {
    width: 100%;
    padding: 18px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, #F7931E 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #b0b0b0 0%, #d0d0d0 100%);
}

/* Loading State */
.submit-btn.loading {
    color: transparent;
}

.submit-btn .btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ============================================
   SUCCESS STATE
   ============================================ */
.success-state {
    display: none;
    text-align: center;
    padding: var(--space-5) var(--space-4);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-state.visible {
    display: block;
}

@keyframes successPop {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto var(--space-4);
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    animation: successBounce 1s ease infinite alternate;
}

@keyframes successBounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.success-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: var(--space-3);
}

.success-message {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto var(--space-5);
}

.success-details {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--color-border);
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.success-detail-row:last-child {
    border-bottom: none;
}

.success-detail-label {
    color: var(--color-text-muted);
}

.success-detail-value {
    color: var(--color-dark);
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: var(--color-white);
    padding: var(--section-padding) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: var(--color-white);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--color-bg-warm);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    font-weight: 300;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 var(--space-5);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-5) var(--space-4);
}

.faq-answer p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* ============================================
   GUIDELINES PREVIEW CARDS
   ============================================ */
.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.guideline-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.guideline-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--space-3);
    box-shadow: 0 6px 20px rgba(255,107,53,0.2);
}

.guideline-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.guideline-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   MODAL STYLES (KEPT FOR GLOBAL USE)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--color-white);
    width: 90%;
    max-width: 850px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg);
}

/* Smooth Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-primary), #F7931E);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .checklist-grid,
    .guidelines-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 46px;
    }

    .process-timeline {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .process-step {
        flex: 0 0 calc(50% - var(--space-4));
    }

    .process-step::after {
        display: none;
    }

    .submission-card {
        padding: var(--space-5) var(--space-4);
    }

    .success-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .checklist-grid,
    .guidelines-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .submission-card {
        padding: var(--space-4) var(--space-3);
        border-radius: var(--radius-lg);
    }

    .submission-card-header h2 {
        font-size: 28px;
    }

    .success-title {
        font-size: 28px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }

    .modal-container {
        width: 95%;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .file-upload-zone {
        padding: var(--space-4);
    }

    .faq-question {
        font-size: 15px;
        padding: var(--space-3) var(--space-4);
    }

    .process-step {
        flex: 0 0 100%;
    }

    .trust-item {
        padding: var(--space-3);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .submission-card-header h2 {
        font-size: 24px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 16px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 34px;
    }

    .guideline-icon,
    .checklist-card .card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}