/* Custom styles for the incorporation questionnaire */

/* CopilotTax Color Palette */
:root {
  --primary: #009688;
  --primary-dark: #00796B;
  --secondary: #004D40;
  --background: #F9FAFB;
  --card-bg: #fff;
  --accent: #00796B;
}

body {
    background: var(--background);
    color: #1F2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    background: var(--background);
}

/* Question styles */
.question-container {
    animation: fadeIn 0.3s ease-in-out;
}

.question-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Answer box styles */
.answer-box {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.answer-box:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.answer-box.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Dropdown styles */
select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Progress bar animation */
@keyframes progressFill {
    from { width: 0; }
    to { width: var(--progress); }
}

.progress-bar {
    transition: width 0.3s ease-in-out;
}

/* Form field styles */
input, select {
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

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

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

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-in-out;
}

/* Results section */
.results-section {
    animation: fadeIn 0.5s ease-in-out;
}

.summary-item {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Results Card */
#resultsContainer {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
}

.results-summary {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.recommendation-detail {
    font-size: 1.1rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.answer-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-card {
    background: #F1F8F7;
    border: 1px solid #B2DFDB;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    flex: 1 1 220px;
    min-width: 180px;
    color: #004D40;
    font-size: 1rem;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.03);
}

/* Action Buttons */
.action-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s;
}
.action-btn:hover {
    background: var(--primary-dark);
}

/* Next Steps Section */
#followUpFields {
    background: #E0F2F1;
    border-radius: 0.75rem;
    padding: 1.25rem 1rem;
    margin-top: 1.5rem;
    border: 1px solid #B2DFDB;
}

#followUpFields label {
    color: #004D40;
    font-weight: 500;
}

/* Email Results Section */
#emailResultsSection {
    margin-top: 2rem;
    padding: 1.25rem 1rem;
    background: #F1F8F7;
    border-radius: 0.75rem;
    border: 1px solid #B2DFDB;
}

/* Disclaimer */
.disclaimer {
    margin-top: 2rem;
    color: #607D8B;
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
}

/* Progress Bar */
#progressBar {
    background: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .question-title {
        font-size: 1.125rem;
    }
    
    .answer-box {
        padding: 0.75rem;
    }
}

@media (max-width: 700px) {
    .answer-cards {
        flex-direction: column;
    }
    #resultsContainer {
        padding: 1rem 0.5rem;
    }
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Error message styles */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.input-error {
    border-color: #DC2626;
}

.input-error:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success states */
.input-success {
    border-color: #059669;
}

.input-success:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Smooth transitions */
.form-section {
    transition: all 0.3s ease-in-out;
}

/* Form section animations */
.form-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.form-section.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Custom form field styles */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    background-color: white;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1F2937;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.recommendation-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
} 