/*
   Mass Tort Leads - Main CSS
   Mobile-first responsive design
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    color: #2c3e50;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Header styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo a {
    color: white;
}

.mobile-menu-btn {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #34495e;
    z-index: 100;
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #445566;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    display: block;
}

/* Hero section */
.hero {
    background-color: #3498db;
    color: white;
    padding: 2rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/hero-image.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
    color: white;
}

.btn-secondary {
    background-color: #2ecc71;
}

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

/* Form Section */
.form-section {
    padding: 3rem 0;
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f7f9fc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

.form-help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    color: #155724;
    margin: 1rem 0;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 1rem;
}

/* Multi-part form */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
}

.progress-step.active {
    background-color: #3498db;
    color: white;
}

.progress-step.completed {
    background-color: #2ecc71;
    color: white;
}

.progress-bar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #ddd;
    z-index: 1;
}

.progress-completed {
    height: 100%;
    background-color: #2ecc71;
    width: 0;
    transition: width 0.3s ease;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Features section */
.features {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.features-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.feature-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* About section */
.about {
    padding: 3rem 0;
    background-color: white;
}

.about-container {
    display: flex;
    flex-direction: column;
}

.about-content {
    padding: 1rem;
}

.about-image {
    padding: 1rem;
}

.about-image img {
    border-radius: 8px;
}

/* Testimonials */
.testimonials {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.testimonials-title {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #3498db;
}

/* CTA section */
.cta {
    padding: 3rem 0;
    background-color: #3498db;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 1rem;
    color: white;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #3d5066;
}

/* Admin Panel Styles */
.admin-header {
    background-color: #34495e;
    color: white;
    padding: 1rem 0;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.admin-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.admin-menu ul {
    display: flex;
    list-style: none;
}

.admin-menu li {
    margin-left: 1.5rem;
}

.admin-menu a {
    color: white;
    text-decoration: none;
}

.admin-content {
    padding: 2rem 0;
}

.admin-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f7f9fc;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.admin-pagination a {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-pagination a.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.admin-btn-primary {
    background-color: #3498db;
    color: white;
}

.admin-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.admin-btn-success {
    background-color: #2ecc71;
    color: white;
}

.admin-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.admin-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.field-action-buttons {
    white-space: nowrap;
}

/* Sortable field list */
.sortable-list {
    list-style: none;
    padding: 0;
}

.sortable-item {
    background-color: #f7f9fc;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: move;
    border-left: 3px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sortable-item-content {
    flex-grow: 1;
}

.drag-handle {
    cursor: move;
    color: #95a5a6;
    margin-right: 1rem;
}

/* Responsive styles */
@media screen and (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-menu {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
    }

    .nav-menu ul {
        display: flex;
    }

    .nav-menu li {
        padding: 0;
        margin-left: 1.5rem;
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: row;
    }

    .about-content,
    .about-image {
        flex: 1;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
