/**
* AAP UGC Frontend Form Styles
* @package APKAutoPoster
* @version 2.0
*/

.aap-ugc-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.aap-ugc-header {
    text-align: center;
    margin-bottom: 30px;
}

.aap-ugc-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.aap-ugc-header .subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.aap-guidelines {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.aap-guidelines h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.aap-guidelines ul li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.aap-guidelines .warning {
    background: #fff3cd;
    padding: 12px;
    border-radius: 4px;
    margin: 0;
    border-left: 3px solid #ffc107;
    font-size: 14px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.aap-guidelines .warning svg {
    flex-shrink: 0;
    margin-top: 2px;
}

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

.form-section {
    background: #fff;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.form-field select {
    height: 44px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.form-field textarea {
    resize: vertical;
}

.required {
    color: #d63638;
}

.optional {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.field-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.char-count {
    font-size: 13px;
    color: #666;
}

.radio-group {
    margin-top: 8px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: #f0f0f0;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.file-input-wrapper:hover .file-input-display {
    border-color: #0073aa;
}

.file-text {
    color: #666;
}

.screenshot-item {
    position: relative;
    margin-bottom: 10px;
}

.screenshot-input {
    padding-right: 45px !important;
}

.btn-remove-screenshot {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #d63638;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.btn-remove-screenshot:hover {
    background: #c92a2b;
}

.btn-add-field {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #0073aa;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-field:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

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

.btn-submit {
    background: #0073aa;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #005a87;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

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

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

.aap-ugc-success,
.aap-ugc-error {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
}

.aap-ugc-success {
    background: #d1fae5;
    border-left: 3px solid #10b981;
    color: #065f46;
}

.aap-ugc-error {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 968px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .aap-ugc-form-container {
        padding: 0;
        margin: 20px auto;
    }
    
    .aap-ugc-header h1 {
        font-size: 26px;
    }
    
    .form-section {
        padding: 10px;
    }
    
    .btn-submit {
        width: 100%;
    }
}