/* Case Modal Styles */
.case-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.case-modal-content {
    background: #1a1a1a;
    margin: 5vh auto;
    padding: 0;
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.case-modal-header {
    background: #e67e22;
    color: white;
    padding: 20px 25px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-modal {
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.case-modal-body {
    padding: 20px 25px;
    color: #fff;
}

/* Progress Bar */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step.active .step-number {
    background: #e67e22;
    border-color: #e67e22;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
}

.progress-step.completed .step-number {
    background: #27ae60;
    border-color: #27ae60;
}

.step-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-title {
    color: #e67e22;
    font-weight: 600;
}

.progress-step.completed .step-title {
    color: #27ae60;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    color: #e67e22;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
    transform: translateY(-1px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
    background: #2d2d2d;
    color: #fff;
}

/* Review Section */
.review-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 0;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-section h4 {
    color: #e67e22;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    color: #e67e22;
    margin-right: 10px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 120px;
}

.btn-primary {
    background: #e67e22;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Additional Modal Styles */
.case-modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-modal-content {
        width: 95%;
        margin: 5vh auto;
        max-height: 85vh;
    }
    
    .case-modal-header {
        padding: 20px;
    }
    
    .case-modal-header h2 {
        font-size: 24px;
    }
    
    .case-modal-body {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-progress {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-progress::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .step-title {
        text-align: left;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .case-modal-content {
        width: 98%;
        margin: 5vh auto;
    }
    
    .case-modal-header {
        padding: 15px;
    }
    
    .case-modal-header h2 {
        font-size: 20px;
    }
    
    .case-modal-body {
        padding: 15px;
    }
    
    .form-step h3 {
        font-size: 20px;
    }
}

/* Scrollbar Styling */
.case-modal-content::-webkit-scrollbar {
    width: 8px;
}

.case-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.case-modal-content::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 4px;
}

.case-modal-content::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* Error Message Styling */
.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 80px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-message h3 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Updated Header Styling */
.et_pb_module_header_welcome {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.et_pb_module_header_law_firm {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Top Navigation Styling - Modern Design */
.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    height: 60px;
}

.nav-email {
    flex: 1;
}

.nav-email a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-email a:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.nav-appointment-btn {
    flex-shrink: 0;
}

.nav-appointment-btn .et_pb_button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-appointment-btn .et_pb_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-appointment-btn .et_pb_button:hover::before {
    left: 100%;
}

.nav-appointment-btn .et_pb_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .top-nav-content {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
        height: auto;
    }
    
    .nav-email {
        text-align: center;
    }
    
    .nav-appointment-btn {
        width: 100%;
        text-align: center;
    }
    
    .nav-appointment-btn .et_pb_button {
        width: 100%;
        max-width: 200px;
    }
}
