/* Apply Page Styles */

/* CSS Variables */
:root {
    --apply-primary: #16a34a;
    --apply-secondary: #15803d;
    --apply-accent: #22c55e;
    --apply-success: #27ae60;
    --apply-warning: #f39c12;
    --apply-light: #f8f9fa;
    --apply-dark: #34495e;
    --apply-text: #333;
    --apply-text-light: #666;
    --apply-border: #bdc3c7;
    --apply-shadow: rgba(0, 0, 0, 0.1);
    --apply-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Main Container */
.apply-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Hero Section */
.apply-hero {
    background: var(--apply-gradient);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apply-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.apply-hero .container {
    position: relative;
    z-index: 2;
}

.apply-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Overview Section */
.apply-overview {
    padding: 80px 0;
    background: white;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.apply-overview h2 {
    font-size: 2.5rem;
    color: var(--apply-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.apply-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--apply-text);
}

/* Form Section */
.apply-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--apply-shadow);
    overflow: hidden;
}

.form-header {
    background: var(--apply-gradient);
    color: white;
    padding: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Form Styles */
.manuscript-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f1f2f6;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.5rem;
    color: var(--apply-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--apply-secondary);
    margin-right: 12px;
    border-radius: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--apply-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--apply-secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.85rem;
    color: var(--apply-text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Service Selection */
.service-options {
    margin-top: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--apply-text);
    margin-bottom: 1.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: var(--apply-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: var(--apply-secondary);
}

.checkbox-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.checkbox-item label strong {
    color: var(--apply-primary);
    font-size: 1rem;
}

.checkbox-item label span {
    color: var(--apply-text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: var(--apply-secondary);
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    border-color: var(--apply-secondary);
    background: rgba(52, 152, 219, 0.05);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f2f6;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--apply-secondary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* Process Section */
.apply-process {
    padding: 80px 0;
    background: white;
}

.apply-process h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--apply-primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border-left: 4px solid var(--apply-secondary);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--apply-shadow);
}

.step-number {
    background: var(--apply-secondary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--apply-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--apply-text);
    line-height: 1.6;
}

/* Considerations Section */
.apply-considerations {
    padding: 80px 0;
    background: #f8f9fa;
}

.apply-considerations h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--apply-primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.considerations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.consideration-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--apply-shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--apply-secondary);
}

.consideration-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.consideration-item h3 {
    font-size: 1.3rem;
    color: var(--apply-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.consideration-item p {
    color: var(--apply-text);
    line-height: 1.6;
}

/* Benefits Section */
.apply-benefits {
    padding: 80px 0;
    background: white;
}

.apply-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--apply-primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--apply-secondary);
}

.benefit-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px var(--apply-shadow);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--apply-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-content h3 {
    font-size: 1.3rem;
    color: var(--apply-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-content p {
    color: var(--apply-text);
    line-height: 1.6;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--apply-accent);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group .error-message {
    color: var(--apply-accent);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--apply-success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--apply-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: var(--apply-success);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .apply-hero {
        padding: 80px 0 60px;
    }
    
    .apply-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-wrapper {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .manuscript-form {
        padding: 20px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .considerations-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .apply-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .apply-overview h2,
    .apply-process h2,
    .apply-considerations h2,
    .apply-benefits h2 {
        font-size: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .process-step,
    .consideration-item,
    .benefit-item {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .apply-hero,
    .form-actions,
    .apply-benefits {
        display: none;
    }
    
    .manuscript-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-section {
        page-break-inside: avoid;
    }
    
    .checkbox-item {
        border: 1px solid #ddd;
        background: white;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--apply-secondary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --apply-primary: #000;
        --apply-secondary: #0066cc;
        --apply-text: #000;
        --apply-border: #666;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}