/* Abstract Submission Form - Frontend Styles */

.asf-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.asf-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.asf-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    text-align: center;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 15px;
}

.asf-section {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.asf-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

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

@media (max-width: 768px) {
    .asf-row {
        grid-template-columns: 1fr;
    }
}

.asf-field {
    margin-bottom: 20px;
}

.asf-field:last-child {
    margin-bottom: 0;
}

.asf-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.asf-field label .required {
    color: #d63638;
    font-weight: bold;
    margin-right: 3px;
}

.asf-field input[type="text"],
.asf-field input[type="email"],
.asf-field input[type="tel"],
.asf-field select,
.asf-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.asf-field input[type="text"]:focus,
.asf-field input[type="email"]:focus,
.asf-field input[type="tel"]:focus,
.asf-field select:focus,
.asf-field textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.asf-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.asf-field input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.asf-field input[type="file"]:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.asf-help-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.asf-checkbox-field {
    margin: 25px 0;
}

.asf-checkbox-field label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.asf-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-left: 10px;
    cursor: pointer;
}

.asf-form-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #e1e4e8;
}

.asf-submit-btn {
    background: linear-gradient(135deg, #2271b1 0%, #1557a0 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    min-width: 200px;
}

.asf-submit-btn:hover {
    background: linear-gradient(135deg, #1557a0 0%, #0d4275 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
}

.asf-submit-btn:active {
    transform: translateY(0);
}

.asf-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.asf-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.asf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: asf-spin 0.8s linear infinite;
}

@keyframes asf-spin {
    to { transform: rotate(360deg); }
}

.asf-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.asf-message.success {
    background: #d1f2e8;
    border: 2px solid #00a32a;
    color: #00612b;
}

.asf-message.error {
    background: #fde8e8;
    border: 2px solid #d63638;
    color: #8b1e1f;
}

.asf-message.info {
    background: #e5f3ff;
    border: 2px solid #2271b1;
    color: #0d4275;
}

/* Accessibility improvements */
.asf-field input:focus-visible,
.asf-field select:focus-visible,
.asf-field textarea:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* RTL specific adjustments */
[dir="rtl"] .asf-checkbox-field input[type="checkbox"] {
    margin-left: 0;
    margin-right: 10px;
}

/* Print styles */
@media print {
    .asf-submit-btn {
        display: none;
    }
}

/* Animation for form appearance */
.asf-form-wrapper {
    animation: asf-fadeIn 0.5s ease-in;
}

@keyframes asf-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
