/**
 * Folks Integration — Application Form
 */

.folks-application-form-wrapper {
    padding: 40px;
}

.folks-form-section {
    margin-bottom: 32px;
}

.folks-form-section h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #374151;
    font-weight: 600;
}

.folks-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.folks-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folks-form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.folks-form-group .required {
    color: #dc2626;
    margin-left: 4px;
}

.folks-input,
.folks-textarea,
.folks-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.folks-input:focus,
.folks-textarea:focus,
.folks-select:focus {
    outline: none;
    border-color: #009D77;
    box-shadow: 0 0 0 3px rgba(0, 157, 119, 0.1);
}

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

.folks-select {
    cursor: pointer;
    background: white;
}

/* File Upload */
.folks-file-upload {
    position: relative;
}

.folks-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.folks-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
    font-weight: 500;
}

.folks-file-label:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.folks-file-upload.has-file .folks-file-label {
    background: #d1fae5;
    border-color: #009D77;
    color: #065f46;
}

.folks-file-name {
    display: none;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
}

.folks-file-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Form Actions */
.folks-form-actions {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.folks-offcanvas-content button {
    border: none;
}

.folks-btn-submit {
    flex: 1;
    position: relative;
    min-height: 48px;
}

.folks-btn-loader {
    display: inline-block;
}

.folks-btn-loader svg {
    animation: folks-spin 1s linear infinite;
}

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

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

/* Form Messages */
.folks-form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
}

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

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

.folks-form-message p {
    margin: 0;
}
