/* Client Portal Styles - Uphill Attorneys */

/* Layout Structure */
.portal-wrapper {
    margin-top: 80px;
}

/* Sidebar Styling */
.portal-sidebar {
    width: 400px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.portal-sidebar-fixed {
    position: fixed;
    top: 80px;
    width: 320px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Right Sidebar */
.portal-info-sidebar {
    width: 400px;
    background-color: #ffffff;
    border-left: 1px solid #e5e7eb;
}

.portal-info-sidebar-content {
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Sidebar Navigation Buttons */
.portal-nav-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    font-weight: 500;
}

.portal-nav-btn:hover {
    background-color: #f3f4f6;
    color: #1e3a8a;
}

.portal-nav-btn.active {
    background-color: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.portal-nav-btn i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.portal-nav-btn .badge {
    margin-left: auto;
}

/* Emergency Contact Box */
.emergency-box {
    background-color: rgba(30, 58, 138, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.emergency-box h3 {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.emergency-box p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.emergency-box .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Form Container */
.portal-form-container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

/* Form Header */
.portal-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.portal-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.portal-form-actions {
    display: flex;
    gap: 0.5rem;
}

/* Priority Cards */
.priority-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.priority-card:hover {
    border-color: #1e3a8a;
    background-color: #f9fafb;
}

.priority-card .form-check-label {
    cursor: pointer;
    width: 100%;
}

.priority-card .form-check-label span {
    font-weight: 500;
    display: block;
}

.priority-card .form-check-label small {
    color: #6b7280;
}

/* Contact Method Cards */
.contact-method-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-method-card:hover {
    border-color: #d97706;
    background-color: #fffbeb;
}

.contact-method-card .form-check-label {
    cursor: pointer;
    font-size: 0.875rem;
}

.contact-method-card .form-check-label i {
    color: #d97706;
}

/* Consent Box */
.consent-box {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.consent-box .form-check-label {
    font-size: 0.875rem;
}

.consent-box a {
    color: #1e3a8a;
    text-decoration: none;
}

.consent-box a:hover {
    text-decoration: underline;
}

/* Office Info Cards */
.office-info-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.office-info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

.office-info-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.office-info-card .info-item {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
}

.office-info-card .info-item i {
    color: #d97706;
    margin-right: 0.75rem;
    width: 20px;
    margin-top: 0.125rem;
}

.office-info-card .info-item p {
    margin: 0;
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .portal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .portal-sidebar-fixed {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
    }

    .portal-wrapper {
        display: block !important;
    }

    .portal-info-sidebar {
        display: none !important;
    }
}

@media (max-width: 1399px) {
    .portal-info-sidebar {
        display: none !important;
    }
}

/* Form Input Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

.form-check-input:checked {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
}

.form-check-input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.1);
}

/* Alert Styling */
.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-info h3 {
    color: #1e3a8a;
}

/* Breadcrumb Styling */
.breadcrumb-item a {
    color: #1e3a8a;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6b7280;
}

/* Button Enhancements */
.btn-outline-secondary {
    border-color: #d1d5db;
    color: #6b7280;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #4b5563;
}

/* Mobile Menu Toggle */
@media (max-width: 767px) {
    .portal-form-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-form-actions {
        margin-top: 1rem;
        width: 100%;
    }

    .portal-form-actions .btn {
        flex: 1;
    }
}

/* Consultation Modal Styling */
.modal-header.bg-law-blue {
    background-color: #1e3a8a;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

#consultationModal .form-label {
    color: #1f2937;
    font-size: 0.9rem;
}

#consultationModal .form-control,
#consultationModal .form-select {
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
}

#consultationModal .form-control:focus,
#consultationModal .form-select:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

#consultationModal .alert {
    font-size: 0.9rem;
}

/* Success Alert Positioning */
.alert.position-fixed {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Button States */
.btn-law-blue {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.btn-law-blue:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.btn-law-blue:disabled {
    background-color: #6b7280;
    border-color: #6b7280;
}

.btn-law-gold {
    background-color: #d97706;
    color: #ffffff;
    border-color: #d97706;
}

.btn-law-gold:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.btn-outline-law-blue {
    color: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-outline-law-blue:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* Text Colors */
.text-law-blue {
    color: #1e3a8a;
}

.text-law-gold {
    color: #d97706;
}

.bg-law-gold {
    background-color: #d97706;
}

.bg-law-blue {
    background-color: #1e3a8a;
}
