/**
 * FreeAds Guest Submissions - Form Styles
 */

.freeads-submit-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.freeads-submit-header {
    text-align: center;
    margin-bottom: 30px;
}

.freeads-submit-header h2 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 10px;
}

.freeads-submit-header p {
    color: #718096;
    font-size: 15px;
}

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

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

.form-group label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 13px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .col-3 {
    flex: 0 0 25%;
}

.form-row .col-9 {
    flex: 0 0 calc(75% - 15px);
}

.form-section {
    margin-top: 30px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
}

.form-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2d3748;
}

.dynamic-fields {
    margin-top: 25px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #0d9488;
}

.dynamic-fields h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0d9488;
}

#image-preview {
    margin-top: 15px;
}

#preview-image {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#desc-counter {
    font-weight: 600;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: #ef4444;
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-submit:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .freeads-submit-container {
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .col-3,
    .form-row .col-9 {
        flex: 1;
    }

    .form-section,
    .dynamic-fields {
        padding: 20px 15px;
    }
}