/* =================================
   CONTRACTS PAGE CSS
   All classes prefixed with "contracts-"
   No conflicts with header-footer.css
================================= */

/* === Container === */
.contracts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* === Section Header === */
.contracts-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.contracts-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #162833;
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: center;
}

.contracts-section-header h2 span {
    color: #1E73FF;
}

.contracts-section-header p {
    font-size: 16px;
    color: #7B8A99;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =================================
   HERO BANNER
================================= */
.contracts-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F4F86 0%, #1a6bb5 50%, #1E73FF 100%);
    overflow: hidden;
    padding: 80px 24px 60px;
}

.contracts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: 0;
}

.contracts-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    z-index: 0;
}

.contracts-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.contracts-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.15;
}

.contracts-hero-content h1 span {
    color: #FFD54F;
}

.contracts-hero-content > p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* === Search Bar === */
.contracts-search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    max-width: 820px;
    margin: 0 auto 40px;
}

.contracts-search-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 16px;
    gap: 10px;
}

.contracts-search-field svg {
    width: 20px;
    height: 20px;
    color: #7B8A99;
    flex-shrink: 0;
}

.contracts-search-field input,
.contracts-search-field select {
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #162833;
    height: 48px;
    width: 100%;
    outline: none;
}

.contracts-search-field input::placeholder {
    color: #A0AEC0;
}

.contracts-search-field select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contracts-search-divider {
    width: 1px;
    height: 32px;
    background-color: #E6E9EE;
    flex-shrink: 0;
}

.contracts-search-btn {
    background: linear-gradient(135deg, #1E73FF 0%, #145BCC 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 28px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.contracts-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 115, 255, 0.35);
}

/* === Hero Stats === */
.contracts-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contracts-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contracts-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.contracts-stat-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================
   CATEGORIES SECTION
================================= */
.contracts-categories {
    padding: 80px 0;
    background-color: #fff;
}

.contracts-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.contracts-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    border-radius: 16px;
    border: 2px solid #F0F2F5;
    background-color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contracts-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(30, 115, 255, 0.12);
    border-color: #1E73FF;
}

.contracts-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EAF4FF 0%, #D6E8FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background 0.25s ease;
}

.contracts-cat-card:hover .contracts-cat-icon {
    background: linear-gradient(135deg, #1E73FF 0%, #145BCC 100%);
}

.contracts-cat-icon svg {
    width: 28px;
    height: 28px;
    stroke: #0F4F86;
    transition: stroke 0.25s ease;
}

.contracts-cat-card:hover .contracts-cat-icon svg {
    stroke: #fff;
}

.contracts-cat-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #162833;
    margin-bottom: 4px;
    line-height: 1.3;
}

.contracts-cat-card p {
    font-size: 13px;
    color: #7B8A99;
    margin: 0;
}

/* =================================
   JOB LISTINGS SECTION
================================= */
.contracts-listings {
    padding: 80px 0;
    background-color: #F6F8FA;
}

/* === Filters === */
.contracts-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.contracts-filter-group {
    flex: 1;
    min-width: 160px;
}

.contracts-filter-group select {
    width: 100%;
    height: 48px;
    border: 2px solid #E6E9EE;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #162833;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B8A99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease;
}

.contracts-filter-group select:focus {
    border-color: #1E73FF;
}

/* === Clear Filters Button === */
.contracts-clear-filters {
    background-color: #fff;
    border: 2px solid #E6E9EE;
    color: #7B8A99;
    border-radius: 12px;
    padding: 0 20px;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.contracts-clear-filters:hover {
    border-color: #D32F2F;
    color: #D32F2F;
    background-color: #FFF5F5;
}

/* === Active Filter Tags === */
.contracts-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 0;
}

.contracts-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #EAF4FF;
    color: #0F4F86;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px 6px 14px;
    border-radius: 50px;
    border: 1px solid #D6E8FF;
}

.contracts-remove-filter {
    background: none;
    border: none;
    color: #0F4F86;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.contracts-remove-filter:hover {
    color: #fff;
    background-color: #D32F2F;
}

/* === Results Count === */
.contracts-results-count {
    font-size: 14px;
    color: #7B8A99;
    margin-bottom: 20px;
    font-weight: 500;
}

/* === No Results === */
.contracts-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid #E6E9EE;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.contracts-no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F0F2F5 0%, #E6E9EE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.contracts-no-results-icon svg {
    width: 32px;
    height: 32px;
    color: #7B8A99;
}

.contracts-no-results h3 {
    font-size: 22px;
    font-weight: 700;
    color: #162833;
    margin-bottom: 8px;
    line-height: 1.3;
}

.contracts-no-results p {
    font-size: 15px;
    color: #7B8A99;
    margin-bottom: 24px;
    max-width: 400px;
    line-height: 1.5;
}

.contracts-reset-btn {
    background: linear-gradient(135deg, #1E73FF, #145BCC);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contracts-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 115, 255, 0.3);
}

.contracts-reset-btn svg {
    width: 18px;
    height: 18px;
}

/* === Job Cards Grid === */
.contracts-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* === Job Card === */
.contracts-job-card {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid #E6E9EE;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contracts-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* Card Header */
.contracts-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 0;
}

.contracts-job-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 50px;
}

.contracts-badge-urgent {
    background-color: #FFF0F0;
    color: #D32F2F;
}

.contracts-badge-new {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.contracts-badge-featured {
    background-color: #FFF8E1;
    color: #F57F17;
}

.contracts-save-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #7B8A99;
    padding: 4px;
    transition: color 0.2s ease;
}

.contracts-save-btn:hover,
.contracts-save-btn.saved {
    color: #1E73FF;
}

.contracts-save-btn svg {
    width: 22px;
    height: 22px;
}

/* Card Body */
.contracts-job-body {
    padding: 16px 20px;
    flex: 1;
}

.contracts-job-category {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1E73FF;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.contracts-job-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #162833;
    margin-bottom: 14px;
    line-height: 1.3;
}

.contracts-job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
}

.contracts-job-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7B8A99;
}

.contracts-job-detail svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tags */
.contracts-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contracts-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #EAF4FF;
    color: #0F4F86;
}

/* Card Footer */
.contracts-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #F0F2F5;
    gap: 12px;
}

.contracts-contractor {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.contracts-contractor-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E73FF, #0F4F86);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contracts-contractor-name {
    font-size: 13px;
    font-weight: 600;
    color: #162833;
    display: block;
    line-height: 1.2;
}

.contracts-contractor-company {
    font-size: 11px;
    color: #7B8A99;
    display: block;
    line-height: 1.2;
}

.contracts-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E73FF 0%, #145BCC 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contracts-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 115, 255, 0.3);
}

/* === Load More === */
.contracts-load-more {
    text-align: center;
    margin-top: 40px;
}

.contracts-load-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #162833;
    border: 2px solid #E6E9EE;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contracts-load-btn:hover {
    border-color: #1E73FF;
    color: #1E73FF;
    transform: translateY(-2px);
}

.contracts-load-btn svg {
    width: 18px;
    height: 18px;
}

/* =================================
   HOW IT WORKS SECTION
================================= */
.contracts-how-it-works {
    padding: 80px 0;
    background-color: #fff;
}

.contracts-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.contracts-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    position: relative;
}

.contracts-step-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #CCD5DE, #1E73FF);
    border-radius: 2px;
    flex-shrink: 0;
}

.contracts-step-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EAF4FF 0%, #D6E8FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background 0.3s ease;
}

.contracts-step:hover .contracts-step-icon {
    background: linear-gradient(135deg, #1E73FF, #145BCC);
}

.contracts-step-icon svg {
    width: 30px;
    height: 30px;
    stroke: #0F4F86;
    transition: stroke 0.3s ease;
}

.contracts-step:hover .contracts-step-icon svg {
    stroke: #fff;
}

.contracts-step h4 {
    font-size: 17px;
    font-weight: 700;
    color: #162833;
    margin-bottom: 8px;
    line-height: 1.2;
}

.contracts-step p {
    font-size: 13px;
    color: #7B8A99;
    line-height: 1.5;
    margin: 0;
    padding: 0 8px;
}

/* =================================
   CTA SECTION
================================= */
.contracts-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F4F86 0%, #1a6bb5 50%, #1E73FF 100%);
    position: relative;
    overflow: hidden;
}

.contracts-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.contracts-cta-box {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.contracts-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: left;
}

.contracts-cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 28px;
}

.contracts-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contracts-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD54F;
    color: #162833;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contracts-cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 213, 79, 0.3);
}

.contracts-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.5);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contracts-cta-btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.contracts-cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contracts-cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 16px 20px;
    transition: background-color 0.2s ease;
}

.contracts-cta-feature:hover {
    background-color: rgba(255,255,255,0.18);
}

.contracts-cta-feature svg {
    width: 24px;
    height: 24px;
    color: #FFD54F;
    flex-shrink: 0;
}

.contracts-cta-feature span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* =================================
   RESPONSIVE
================================= */

/* === Large Desktop (max-width: 1200px) === */
@media (max-width: 1200px) {
    .contracts-cat-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .contracts-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contracts-cta-box {
        gap: 36px;
    }
}

/* === Tablet (max-width: 992px) === */
@media (max-width: 992px) {
    .contracts-hero {
        min-height: 460px;
        padding: 60px 20px 48px;
    }

    .contracts-hero-content h1 {
        font-size: 38px;
    }

    .contracts-hero-content > p {
        font-size: 16px;
    }

    .contracts-search-bar {
        flex-wrap: wrap;
        border-radius: 14px;
        gap: 8px;
        padding: 12px;
    }

    .contracts-search-field {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .contracts-search-divider {
        display: none;
    }

    .contracts-search-btn {
        width: 100%;
        border-radius: 10px;
    }

    .contracts-hero-stats {
        gap: 28px;
    }

    .contracts-stat-number {
        font-size: 24px;
    }

    .contracts-categories,
    .contracts-listings,
    .contracts-how-it-works,
    .contracts-cta {
        padding: 60px 0;
    }

    .contracts-section-header {
        margin-bottom: 36px;
    }

    .contracts-section-header h2 {
        font-size: 30px;
    }

    .contracts-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .contracts-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contracts-filters {
        gap: 10px;
    }

    .contracts-filter-group {
        min-width: 140px;
    }

    .contracts-clear-filters {
        height: 44px;
        font-size: 13px;
    }

    .contracts-steps {
        gap: 0;
    }

    .contracts-step {
        width: 180px;
    }

    .contracts-step-connector {
        width: 30px;
    }

    .contracts-cta-box {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .contracts-cta-content h2 {
        text-align: center;
    }

    .contracts-cta-buttons {
        justify-content: center;
    }

    .contracts-cta-features {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* === Small Tablet (max-width: 768px) === */
@media (max-width: 768px) {
    .contracts-hero {
        min-height: 420px;
        padding: 48px 16px 40px;
    }

    .contracts-hero-content h1 {
        font-size: 30px;
    }

    .contracts-hero-content > p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .contracts-search-bar {
        flex-direction: column;
        gap: 0;
        padding: 8px;
    }

    .contracts-search-field {
        flex: auto;
        width: 100%;
        padding: 0 12px;
    }

    .contracts-search-field input,
    .contracts-search-field select {
        height: 44px;
        font-size: 14px;
    }

    .contracts-search-btn {
        height: 44px;
        font-size: 14px;
    }

    .contracts-hero-stats {
        gap: 20px;
    }

    .contracts-stat-number {
        font-size: 22px;
    }

    .contracts-stat-text {
        font-size: 11px;
    }

    .contracts-categories,
    .contracts-listings,
    .contracts-how-it-works,
    .contracts-cta {
        padding: 48px 0;
    }

    .contracts-container {
        padding: 0 16px;
    }

    .contracts-section-header h2 {
        font-size: 26px;
    }

    .contracts-section-header p {
        font-size: 14px;
    }

    .contracts-section-header {
        margin-bottom: 28px;
    }

    .contracts-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contracts-cat-card {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .contracts-cat-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .contracts-cat-icon svg {
        width: 24px;
        height: 24px;
    }

    .contracts-cat-card h4 {
        font-size: 14px;
    }

    .contracts-cat-card p {
        font-size: 12px;
    }

    .contracts-filters {
        flex-direction: column;
        gap: 10px;
    }

    .contracts-filter-group {
        min-width: 100%;
    }

    .contracts-filter-group select {
        height: 44px;
        font-size: 13px;
    }

    .contracts-clear-filters {
        width: 100%;
        justify-content: center;
    }

    .contracts-jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contracts-job-body h3 {
        font-size: 16px;
    }

    .contracts-job-details {
        gap: 10px;
    }

    .contracts-job-detail {
        font-size: 12px;
    }

    /* How It Works - Stack */
    .contracts-steps {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .contracts-step-connector {
        width: 2px;
        height: 24px;
        background: linear-gradient(180deg, #CCD5DE, #1E73FF);
    }

    .contracts-step {
        width: 100%;
        max-width: 340px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
        background-color: #F6F8FA;
        padding: 20px;
        border-radius: 14px;
        border: 1px solid #E6E9EE;
    }

    .contracts-step-icon {
        margin-bottom: 0;
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .contracts-step-icon svg {
        width: 24px;
        height: 24px;
    }

    .contracts-step h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .contracts-step p {
        font-size: 12px;
        padding: 0;
    }

    /* CTA */
    .contracts-cta-content h2 {
        font-size: 28px;
    }

    .contracts-cta-content p {
        font-size: 14px;
    }

    .contracts-cta-btn-primary,
    .contracts-cta-btn-secondary {
        font-size: 14px;
        padding: 12px 24px;
    }

    .contracts-cta-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contracts-cta-feature {
        padding: 14px 16px;
    }

    .contracts-cta-feature span {
        font-size: 13px;
    }

    /* No Results */
    .contracts-no-results {
        padding: 48px 24px;
        border-radius: 16px;
    }

    .contracts-no-results-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .contracts-no-results-icon svg {
        width: 28px;
        height: 28px;
    }

    .contracts-no-results h3 {
        font-size: 18px;
    }

    .contracts-no-results p {
        font-size: 13px;
    }

    .contracts-reset-btn {
        padding: 10px 24px;
        font-size: 14px;
        border-radius: 10px;
    }

    .contracts-active-tag {
        font-size: 12px;
        padding: 5px 10px 5px 12px;
    }

    .contracts-results-count {
        font-size: 13px;
    }
}

/* === Mobile (max-width: 576px) === */
@media (max-width: 576px) {
    .contracts-hero {
        min-height: 380px;
        padding: 36px 12px 32px;
    }

    .contracts-hero-content h1 {
        font-size: 26px;
    }

    .contracts-hero-content > p {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .contracts-search-bar {
        padding: 6px;
        border-radius: 10px;
        margin-bottom: 28px;
    }

    .contracts-search-field {
        padding: 0 10px;
    }

    .contracts-search-field svg {
        width: 18px;
        height: 18px;
    }

    .contracts-search-field input,
    .contracts-search-field select {
        height: 40px;
        font-size: 13px;
    }

    .contracts-search-btn {
        height: 42px;
        font-size: 13px;
        padding: 0 20px;
        border-radius: 8px;
    }

    .contracts-hero-stats {
        gap: 16px;
    }

    .contracts-stat-number {
        font-size: 20px;
    }

    .contracts-stat-text {
        font-size: 10px;
    }

    .contracts-categories,
    .contracts-listings,
    .contracts-how-it-works,
    .contracts-cta {
        padding: 36px 0;
    }

    .contracts-container {
        padding: 0 12px;
    }

    .contracts-section-header h2 {
        font-size: 22px;
    }

    .contracts-section-header p {
        font-size: 13px;
    }

    .contracts-section-header {
        margin-bottom: 24px;
    }

    .contracts-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contracts-cat-card {
        padding: 16px 10px;
        border-radius: 10px;
    }

    .contracts-cat-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 10px;
    }

    .contracts-cat-icon svg {
        width: 20px;
        height: 20px;
    }

    .contracts-cat-card h4 {
        font-size: 13px;
    }

    .contracts-cat-card p {
        font-size: 11px;
    }

    .contracts-filter-group select {
        height: 42px;
        font-size: 12px;
        border-radius: 10px;
    }

    .contracts-clear-filters {
        height: 42px;
        font-size: 12px;
        border-radius: 10px;
    }

    .contracts-job-card {
        border-radius: 12px;
    }

    .contracts-job-header {
        padding: 12px 16px 0;
    }

    .contracts-job-body {
        padding: 12px 16px;
    }

    .contracts-job-body h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .contracts-job-category {
        font-size: 12px;
    }

    .contracts-job-details {
        gap: 8px;
        margin-bottom: 10px;
    }

    .contracts-job-detail {
        font-size: 11px;
    }

    .contracts-job-detail svg {
        width: 14px;
        height: 14px;
    }

    .contracts-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .contracts-job-footer {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contracts-apply-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .contracts-contractor-avatar {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .contracts-contractor-name {
        font-size: 12px;
    }

    .contracts-contractor-company {
        font-size: 10px;
    }

    .contracts-load-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    /* Steps */
    .contracts-step {
        max-width: 100%;
        padding: 16px;
        gap: 12px;
        border-radius: 10px;
    }

    .contracts-step-connector {
        height: 16px;
    }

    .contracts-step-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .contracts-step-icon svg {
        width: 22px;
        height: 22px;
    }

    .contracts-step h4 {
        font-size: 14px;
    }

    .contracts-step p {
        font-size: 11px;
    }

    /* CTA */
    .contracts-cta-content h2 {
        font-size: 22px;
    }

    .contracts-cta-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .contracts-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .contracts-cta-btn-primary,
    .contracts-cta-btn-secondary {
        font-size: 14px;
        padding: 12px 20px;
        width: 100%;
        border-radius: 10px;
    }

    .contracts-cta-feature {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .contracts-cta-feature svg {
        width: 20px;
        height: 20px;
    }

    .contracts-cta-feature span {
        font-size: 12px;
    }

    /* No Results */
    .contracts-no-results {
        padding: 40px 20px;
        border-radius: 14px;
    }

    .contracts-no-results-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }

    .contracts-no-results-icon svg {
        width: 24px;
        height: 24px;
    }

    .contracts-no-results h3 {
        font-size: 17px;
    }

    .contracts-no-results p {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .contracts-reset-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .contracts-active-tag {
        font-size: 11px;
        padding: 4px 8px 4px 10px;
    }
}

/* === Very Small Phones (max-width: 400px) === */
@media (max-width: 400px) {
    .contracts-hero-content h1 {
        font-size: 22px;
    }

    .contracts-hero-content > p {
        font-size: 12px;
    }

    .contracts-search-field input,
    .contracts-search-field select {
        height: 38px;
        font-size: 12px;
    }

    .contracts-search-btn {
        height: 38px;
        font-size: 12px;
    }

    .contracts-stat-number {
        font-size: 18px;
    }

    .contracts-section-header h2 {
        font-size: 20px;
    }

    .contracts-section-header p {
        font-size: 12px;
    }

    .contracts-cat-grid {
        gap: 8px;
    }

    .contracts-cat-card {
        padding: 14px 8px;
    }

    .contracts-cat-icon {
        width: 38px;
        height: 38px;
    }

    .contracts-cat-icon svg {
        width: 18px;
        height: 18px;
    }

    .contracts-cat-card h4 {
        font-size: 12px;
    }

    .contracts-cat-card p {
        font-size: 10px;
    }

    .contracts-job-body h3 {
        font-size: 14px;
    }

    .contracts-job-detail {
        font-size: 10px;
    }

    .contracts-tag {
        font-size: 9px;
    }

    .contracts-apply-btn {
        font-size: 12px;
    }

    .contracts-step {
        padding: 14px;
        gap: 10px;
    }

    .contracts-step-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .contracts-step h4 {
        font-size: 13px;
    }

    .contracts-step p {
        font-size: 10px;
    }

    .contracts-cta-content h2 {
        font-size: 20px;
    }

    .contracts-cta-btn-primary,
    .contracts-cta-btn-secondary {
        font-size: 13px;
        padding: 10px 16px;
    }

    .contracts-filter-group select {
        height: 38px;
        font-size: 11px;
    }

    .contracts-clear-filters {
        height: 38px;
        font-size: 11px;
    }

    .contracts-no-results {
        padding: 32px 16px;
        border-radius: 12px;
    }

    .contracts-no-results-icon {
        width: 48px;
        height: 48px;
    }

    .contracts-no-results-icon svg {
        width: 22px;
        height: 22px;
    }

    .contracts-no-results h3 {
        font-size: 16px;
    }

    .contracts-no-results p {
        font-size: 11px;
    }

    .contracts-reset-btn {
        padding: 8px 18px;
        font-size: 12px;
        border-radius: 8px;
    }
}