/* --- Clients Module Styles --- */

.clients-shell {
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    position: relative;
    z-index: 10;
}

.clients-hero,
.form-panel,
.list-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(50px) saturate(210%);
    border-radius: 40px;
    border: 1px solid var(--panel-border);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.clients-hero {
    padding: 40px 50px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(195, 0, 47, 0.1);
    border: 1px solid rgba(195, 0, 47, 0.3);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-copy h1 {
    font-family: "Playfair Display", serif;
    font-size: 44px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff, #ffcbd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    max-width: 650px;
}

.hero-side {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px 26px;
    min-width: 194px;
}

.mini-stat span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.mini-stat strong {
    font-size: 32px;
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.hero-link {
    min-width: 220px;
    min-height: 74px;
    padding: 16px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #7a001f);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(195, 0, 47, 0.3);
}

.hero-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(195, 0, 47, 0.5);
    filter: brightness(1.1);
}

.form-panel,
.list-panel {
    padding: 40px;
}

.form-panel {
    background:
        radial-gradient(circle at top right, rgba(195, 0, 47, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03), transparent 20%),
        linear-gradient(180deg, rgba(13, 13, 15, 0.96), rgba(9, 9, 11, 0.98));
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 24%, transparent 72%, rgba(195, 0, 47, 0.08)),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.panel-title-wrap {
    max-width: 760px;
}

.panel-head h2 {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff5f7, #ffc7d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-copy {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.7;
    max-width: 620px;
}

.panel-mark {
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.client-form {
    position: relative;
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1.15fr) minmax(320px, 1fr);
    grid-template-areas:
        "name name"
        "services services";
    gap: 26px 30px;
    margin-top: 30px;
    align-items: start;
}

.field {
    display: grid;
    gap: 14px;
}

.field-name {
    grid-area: name;
    max-width: 780px;
}

.field-services {
    grid-area: services;
}

.field span {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.28em;
}

.field input {
    height: 72px;
    width: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.94), rgba(4, 4, 6, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 0 24px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.35s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 34px rgba(0, 0, 0, 0.16);
}

.field input:focus {
    border-color: rgba(255, 103, 137, 0.7);
    box-shadow:
        0 0 0 4px rgba(195, 0, 47, 0.1),
        0 18px 38px rgba(195, 0, 47, 0.12);
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.subservice-group {
    margin-top: 18px;
    padding: 18px 20px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.subservice-group.is-visible {
    display: block;
}

.subservice-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.subservice-head strong {
    color: #fff3f6;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subservice-head span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
    line-height: 1.5;
}

.subservice-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.subservice-option {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.subservice-option:hover {
    border-color: rgba(255, 98, 133, 0.3);
    background: rgba(195, 0, 47, 0.06);
}

.subservice-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #ff476f;
}

.subservice-option span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.subservice-option:has(input:checked) {
    border-color: rgba(255, 98, 133, 0.62);
    background: linear-gradient(135deg, rgba(195, 0, 47, 0.18), rgba(101, 0, 25, 0.18));
}

.service-option {
    min-height: 56px;
    padding: 0 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 55%, rgba(195, 0, 47, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 98, 133, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(195, 0, 47, 0.04));
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.service-option:hover::before,
.service-option:has(input:checked)::before {
    opacity: 1;
}

.service-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #ff476f;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.service-option span:last-child {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.service-option:has(input:checked) {
    border-color: rgba(255, 98, 133, 0.72);
    background: linear-gradient(135deg, rgba(195, 0, 47, 0.24), rgba(101, 0, 25, 0.22));
    box-shadow:
        0 18px 34px rgba(195, 0, 47, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-option:has(input:checked) span:last-child {
    color: #fff5f7;
}

.form-actions {
    margin-top: 30px;
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1fr);
    gap: 16px;
    align-items: center;
}

.primary-btn,
.secondary-btn {
    min-height: 0;
    padding: 20px 40px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.primary-btn {
    min-width: 0;
    border: none;
    background: linear-gradient(135deg, var(--accent), #7a001f);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(195, 0, 47, 0.3);
}

.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(195, 0, 47, 0.5);
}

.secondary-btn {
    min-width: 0;
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #f8e9ed;
}

.secondary-btn:hover {
    border-color: rgba(255, 97, 133, 0.36);
    background: rgba(195, 0, 47, 0.08);
}

.client-message {
    min-height: 24px;
    justify-self: end;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
}

.client-message.success {
    color: #83f2ba;
}

.client-message.error {
    color: #ff9ea8;
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.search-box input {
    height: 52px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0 20px;
    color: #fff;
    width: 320px;
    outline: none;
    transition: all 0.4s ease;
    font-size: 14px;
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--accent-red);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 40px rgba(195, 0, 47, 0.2);
}

.clients-list-wrap {
    margin-top: 30px;
    overflow-x: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

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

.clients-table th,
.clients-table td {
    padding: 22px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-table th {
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}

.clients-table tr.row-hidden {
    display: none;
}

.client-name-cell {
    font-weight: 800;
    color: #fff;
}

.service-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(195, 0, 47, 0.1);
    color: #ff3c64;
    border: 1px solid rgba(195, 0, 47, 0.3);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.service-tag.subtle {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
}

.table-action-btn {
    padding: 10px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-action-btn:hover {
    border-color: var(--accent);
    background: rgba(195, 0, 47, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 1366px) {
    .clients-shell {
        gap: 24px;
    }

    .clients-hero,
    .form-panel,
    .list-panel {
        border-radius: 32px;
    }

    .clients-hero {
        padding: 34px 36px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-side {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-link {
        min-width: 200px;
    }

    .form-panel,
    .list-panel {
        padding: 34px;
    }
}

@media (max-width: 1100px) {
    .clients-hero {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .hero-side {
        justify-content: flex-start;
    }

    .panel-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .form-actions {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .client-message {
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .clients-hero,
    .form-panel,
    .list-panel {
        padding: 28px;
    }

    .hero-copy h1,
    .panel-head h2 {
        font-size: 28px;
    }

    .field-name {
        max-width: none;
    }

    .field input {
        height: 64px;
        font-size: 15px;
    }

    .services-grid {
        gap: 12px;
    }

    .subservice-group {
        padding: 16px;
    }

    .service-option {
        min-height: 52px;
        padding: 0 18px;
        border-radius: 16px;
    }

    .hero-side,
    .list-head {
        flex-wrap: wrap;
    }

    .hero-link,
    .mini-stat,
    .search-box,
    .search-box input,
    .primary-btn,
    .secondary-btn {
        width: 100%;
        min-width: 0;
    }
}
