/* Orthomoleculair Advies - Frontend Intake Formulier */

.om-intake-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.om-intake-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    border-color: var(--om-primary-color, #2563eb);
}

.om-intake-logo {
    max-width: 200px;
    max-height: 80px;
}

.om-intake-header h2 {
    color: var(--om-primary-color, #2563eb);
    margin: 0;
    font-size: 32px;
}

.om-intake-intro {
    margin-bottom: 40px;
    text-align: center;
}

.om-intake-intro h3 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 10px;
}

.om-intake-intro p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.om-intake-form {
    /* Form styles */
}

.om-form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid;
    border-color: var(--om-primary-color, #2563eb);
}

.om-form-section h4 {
    color: var(--om-primary-color, #2563eb);
    margin: 0 0 20px 0;
    font-size: 20px;
}

.om-form-row {
    margin-bottom: 20px;
}

.om-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.om-form-row input[type="text"],
.om-form-row input[type="email"],
.om-form-row input[type="tel"],
.om-form-row input[type="number"],
.om-form-row select,
.om-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.om-form-row input:focus,
.om-form-row select:focus,
.om-form-row textarea:focus {
    outline: none;
    border-color: var(--om-primary-color, #2563eb);
}

.om-form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.om-field-help {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.om-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.om-checkbox-row label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.om-checkbox-row input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.om-checkbox-row a {
    color: var(--om-primary-color, #2563eb);
    text-decoration: underline;
}

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

.om-submit-btn {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--om-primary-color, #2563eb) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.om-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

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

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

.om-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.om-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: om-spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.om-form-messages {
    margin-top: 20px;
}

.om-message {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}

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

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

.om-success-message {
    text-align: center;
    padding: 60px 40px;
}

.om-success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 30px;
    animation: om-success-pop 0.5s ease;
}

@keyframes om-success-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.om-success-message h3 {
    color: #065f46;
    font-size: 28px;
    margin-bottom: 15px;
}

.om-success-message p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .om-intake-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .om-form-section {
        padding: 20px;
    }
    
    .om-submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Required field indicator */
.om-form-row label:after {
    content: '';
}

.om-form-row:has(input[required]) label:after,
.om-form-row:has(textarea[required]) label:after,
.om-form-row:has(select[required]) label:after {
    content: ' *';
    color: #dc2626;
}
