/* Submit Blog Article Page Styles */

/* Main Layout */
.submit-blog-main {
    padding: 40px 0 0;
}

/* Hero Section */
.submit-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 0;
}

.submit-hero .hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.form-container {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    height: fit-content;
}

.form-intro {
    text-align: center;
    margin-bottom: 40px;
}

.form-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
}

.form-intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Form Styles */
.blog-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section-group {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    background: #fafafa;
}

.form-section-group legend {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    padding: 0 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    line-height: 1.5;
}

.form-group textarea[name="articleContent"] {
    min-height: 300px;
}

.form-group textarea[name="authorBio"] {
    min-height: 80px;
}

.form-group textarea[name="articleSubtitle"] {
    min-height: 60px;
}

.field-note {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Character Counter */
.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.danger {
    color: #e74c3c;
    font-weight: 600;
}

/* File Input Styling */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Image Guidelines */
.image-guidelines {
    background: #e8f2ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 15px;
}

.image-guidelines h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.image-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.image-guidelines li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

/* Checkbox Group */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.btn-submit,
.btn-clear {
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-submit {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-clear {
    background: transparent;
    color: #666;
    border-color: #ddd;
}

.btn-clear:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Status Message */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.status-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Guidelines Sidebar */
.guidelines-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.guidelines-widget {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.guidelines-widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Guideline Items */
.guideline-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.guideline-item:last-child {
    margin-bottom: 0;
}

.guideline-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.guideline-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Process Steps */
.process-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Inspiration Widget */
.inspiration-widget {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #667eea;
}

.inspiration-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inspiration-widget li {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.inspiration-widget li:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.terms-content h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    margin-bottom: 20px;
}

.terms-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn-close-terms {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.btn-close-terms:hover {
    background: #764ba2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .form-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }
    
    .guidelines-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .form-intro h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-submit,
    .btn-clear {
        width: 100%;
        max-width: 300px;
    }
    
    .guidelines-sidebar {
        margin: 0 20px;
    }
    
    .guidelines-widget {
        padding: 20px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .submit-hero {
        padding: 40px 0;
    }
    
    .form-section {
        padding: 40px 10px;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 25px 15px;
    }
    
    .form-section-group {
        padding: 20px;
    }
    
    .guidelines-sidebar {
        margin: 0 10px;
    }
    
    .guidelines-widget {
        padding: 20px 15px;
    }
}
