/* Custom styles for the legal intake application */

/* Clean, minimal design with beige background */
body {
    margin: 0;
    padding: 0;
    background-color: #f5f2ed;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333;
    line-height: 1.6;
}

/* Form styling to match the elegant design */
.form-control, .form-select {
    background-color: transparent;
    border: 1px solid #999;
    border-radius: 2px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
}

.form-control:focus, .form-select:focus {
    background-color: transparent;
    border-color: #666;
    box-shadow: none;
    outline: none;
}

.form-label {
    font-weight: normal;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

/* Button styling to match the red submit button */
.btn-primary, .btn-danger {
    background-color: #c85a54;
    border: none;
    border-radius: 2px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    font-family: inherit;
}

.btn-primary:hover, .btn-danger:hover {
    background-color: #b04a44;
}

.btn-primary:focus, .btn-danger:focus {
    background-color: #b04a44;
    box-shadow: none;
}

/* Card styling - minimal and clean */
.card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.card-header {
    background-color: transparent;
    border-bottom: none;
    padding: 0 0 20px 0;
}

.card-body {
    padding: 0;
}

/* Page title styling */
.page-title {
    font-size: 48px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #333;
}

.page-subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #333;
}

/* Progress bar styling - minimal */
.progress {
    background-color: #e8e6e1;
    height: 4px;
    border-radius: 0;
}

.progress-bar {
    background-color: #c85a54;
}

/* Container adjustments */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Two column layout for main page */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Contact info styling */
.contact-info {
    font-size: 16px;
    line-height: 1.8;
}

.contact-info strong {
    font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .two-column {
        display: block;
        gap: 0;
    }
    
    .main-container {
        padding: 40px 20px;
    }
    
    .page-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .page-subtitle {
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

/* Step pages styling */
.step-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.step-title {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
}

.step-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Progress styling */
.progress-container {
    margin-bottom: 40px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 8px;
    color: #666;
}

.progress-labels .active {
    color: #c85a54;
    font-weight: bold;
}

/* Success page styling */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.success-icon {
    font-size: 48px;
    color: #c85a54;
    margin-bottom: 20px;
}

.success-title {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #333;
}

.success-message {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

/* Admin portal styling */
.admin-container {
    padding: 40px 20px;
    background-color: #fff;
    min-height: 100vh;
}

.admin-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
    color: #333;
}

.table th {
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* Loading states */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8e6e1;
    border-left: 4px solid #c85a54;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }
}

/* Loading states */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Table styling for admin */
.table th {
    border-top: none;
    font-weight: 600;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Iframe-specific adjustments */
html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Make sure content doesn't get cut off in iframe */
.container, .container-fluid {
    max-width: 100%;
}

/* Admin portal specific styles */
.table-responsive {
    border-radius: 0.375rem;
}

/* Copy button feedback */
.btn.copying {
    transition: all 0.3s ease;
}

/* Question/Answer styling */
.border-start {
    border-left-width: 3px !important;
}

/* Mobile-first responsive design */
@media (max-width: 576px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Print styles for admin */
@media print {
    .btn, .card-header, .navbar {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}

/* Focus styles for accessibility */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Error states */
.is-invalid {
    border-color: var(--bs-danger);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-danger);
}
