/* ==========================================================================
   Sollicitatie Form
   ========================================================================== */

.hopmans-sollicitatie-section {
    margin-top: 40px;
    padding: 32px;
    background: #fff;
    border-radius: 0;
    border: 1px solid #e5e7eb;
}

.hopmans-sollicitatie-section h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--e-global-color-primary, #10aa9e);
}

.hopmans-sollicitatie-form {
    max-width: 100%;
}

/* Form rows (2 columns) */
.hopmans-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Form fields */
.hopmans-form-field {
    display: flex;
    flex-direction: column;
}

.hopmans-form-field-full {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

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

.hopmans-form-field label .required {
    color: #dc2626;
}

.hopmans-form-field label .optional {
    font-weight: 400;
    color: #6b7280;
}

.hopmans-form-field input[type="text"],
.hopmans-form-field input[type="email"],
.hopmans-form-field input[type="tel"] {
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    border: 1px solid #aaa !important;
    border-radius: 0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
}

.hopmans-form-field input[type="text"]:focus,
.hopmans-form-field input[type="email"]:focus,
.hopmans-form-field input[type="tel"]:focus {
    outline: none !important;
    border-color: var(--e-global-color-primary, #10aa9e) !important;
    box-shadow: 0 0 0 3px rgba(16, 170, 158, 0.1) !important;
}

.hopmans-form-field input::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* Dropzone */
.hopmans-dropzone {
    position: relative;
    border: 2px dashed #aaa;
    border-radius: 0;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #fafafa;
}

.hopmans-dropzone:hover {
    border-color: var(--e-global-color-primary, #10aa9e);
    background: #f0fdf9;
}

.hopmans-dropzone.hopmans-dropzone-active {
    border-color: var(--e-global-color-primary, #10aa9e);
    background: #f0fdf9;
    border-style: solid;
}

.hopmans-dropzone.hopmans-dropzone-has-file {
    border-style: solid;
    border-color: var(--e-global-color-primary, #10aa9e);
    background: #f0fdf9;
}

.hopmans-dropzone input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.hopmans-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hopmans-dropzone-content svg {
    color: #9ca3af;
}

.hopmans-dropzone-content p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.hopmans-dropzone-content p span {
    color: var(--e-global-color-primary, #10aa9e);
    font-weight: 500;
}

.hopmans-dropzone-content small {
    font-size: 13px;
    color: #9ca3af;
}

/* File selected state */
.hopmans-dropzone-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hopmans-dropzone-file svg {
    color: var(--e-global-color-primary, #10aa9e);
}

.hopmans-dropzone-file .filename {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hopmans-dropzone-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: #fee2e2;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hopmans-dropzone-remove svg {
    color: #dc2626;
}

.hopmans-dropzone-remove:hover {
    background: #fecaca;
}

/* Checkbox field */
.hopmans-form-checkbox {
    margin-bottom: 24px;
}

.hopmans-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.hopmans-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--e-global-color-primary, #10aa9e);
}

.hopmans-form-checkbox span {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Submit button - consistent with Fluent Forms */
.hopmans-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--e-global-color-accent, #f4a029);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hopmans-form-submit:hover {
    opacity: 0.9;
}

.hopmans-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hopmans-form-submit .button-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hopmans-form-submit .spinner {
    animation: hopmansSpinner 1s linear infinite;
}

@keyframes hopmansSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form messages */
.hopmans-form-messages {
    margin-top: 20px;
}

.hopmans-form-success,
.hopmans-form-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 0;
}

.hopmans-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.hopmans-form-success svg {
    color: #16a34a;
    flex-shrink: 0;
}

.hopmans-form-success p {
    margin: 0;
    font-size: 15px;
    color: #166534;
    line-height: 1.5;
}

.hopmans-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.hopmans-form-error svg {
    color: #dc2626;
    flex-shrink: 0;
}

.hopmans-form-error p {
    margin: 0;
    font-size: 15px;
    color: #991b1b;
    line-height: 1.5;
}

/* Field errors */
.hopmans-field-error input,
.hopmans-field-error .hopmans-dropzone {
    border-color: #dc2626;
}

.hopmans-field-error-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
}

/* Loading state */
.hopmans-form-loading .hopmans-form-field input,
.hopmans-form-loading .hopmans-dropzone,
.hopmans-form-loading .hopmans-form-checkbox input {
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive form */
@media (max-width: 640px) {
    .hopmans-sollicitatie-section {
        padding: 24px 16px;
    }

    .hopmans-sollicitatie-section h2 {
        font-size: 20px;
    }

    .hopmans-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hopmans-form-field-full {
        margin-bottom: 16px;
    }

    .hopmans-dropzone {
        padding: 24px 16px;
    }

    .hopmans-form-submit {
        width: 100%;
    }
}
