/* Mounjaro Assessment Form Styles */
.mounjaro-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Header Styles */
.mounjaro-header {
    background: white;
    border-bottom: 3px solid #2563eb;
    padding: 24px;
    margin-bottom: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mounjaro-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-clockwork {
    background-color: #f97316;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

.logo-pharmacy {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
}

.mounjaro-title {
    text-align: right;
}

.form-date {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 14px;
}

.mounjaro-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

/* Form Section Styles */
.form-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.section-icon {
    font-size: 20px;
}

.form-section h3 {
    margin: 16px 0 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio and Checkbox Groups */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #f3f4f6;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #2563eb;
}

/* Medical Conditions */
.medical-conditions,
.health-conditions,
.weight-questions,
.women-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.condition-item,
.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 6px;
}

.condition-text,
.question-text {
    flex: 1;
    color: #374151;
    font-size: 14px;
}

/* Women Only Section */
.women-only {
    background-color: #fdf2f8;
    border-color: #f9a8d4;
}

.women-only h2 {
    color: #be185d;
}

/* Consent Section */
.consent-text {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.consent-text p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

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

.btn-icon {
    font-size: 16px;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Messages */
#form-messages {
    margin-top: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.message.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Footer */
.mounjaro-footer {
    background-color: #f9fafb;
    border-top: 2px solid #e5e7eb;
    padding: 24px;
    margin-top: 32px;
    border-radius: 8px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-info {
    display: flex;
    gap: 24px;
    color: #6b7280;
    font-size: 14px;
}

.private-service {
    text-align: center;
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mounjaro-form-container {
        padding: 16px;
    }
    
    .mounjaro-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .mounjaro-title {
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .condition-item,
    .question-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .form-actions,
    .mounjaro-footer {
        display: none;
    }
}