.guides-page {
    color: #24353d;
    background: #eff6f8;
}

.guides-stage {
    min-height: calc(100vh - 72px);
    padding: 28px 0 40px;
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
}

.guides-wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.guides-intro {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: linear-gradient(120deg, rgba(7, 84, 119, 0.98), rgba(12, 137, 139, 0.95));
    border: 1px solid rgba(205, 216, 222, 0.82);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.guides-kicker {
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d8f7f5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.guides-kicker svg {
    width: 16px;
    height: 16px;
}

.guides-intro h1 {
    margin: 0;
    font-size: 31px;
    line-height: 1.1;
}

.guides-intro p:last-child {
    max-width: 760px;
    margin: 8px 0 0;
    color: #edf9fa;
    font-size: 13px;
    line-height: 1.48;
}

.guide-owner-button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: #e86d26;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.guide-owner-button svg {
    width: 17px;
    height: 17px;
}

.guides-toolbar {
    margin-top: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d7e2e6;
    border-radius: 7px;
    box-shadow: 0 5px 16px rgba(21, 61, 75, 0.08);
}

.guides-toolbar label {
    width: min(460px, 100%);
    min-height: 38px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f7f8;
    border: 1px solid #d5dfe3;
    border-radius: 5px;
}

.guides-toolbar label:focus-within {
    border-color: #0c898b;
    box-shadow: 0 0 0 3px rgba(12, 137, 139, 0.12);
}

.guides-toolbar svg {
    width: 17px;
    height: 17px;
    color: #0c898b;
}

.guides-toolbar input {
    width: 100%;
    color: #24353d;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 12px;
}

.guides-toolbar > span {
    color: #60727a;
    font-size: 11px;
}

.guides-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.guides-loading,
.guides-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #61737b;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 13px;
}

.guides-loading svg {
    width: 27px;
    height: 27px;
    color: #0c898b;
    animation: guide-spin 1s linear infinite;
}

@keyframes guide-spin {
    to { transform: rotate(360deg); }
}

.public-guide-card {
    min-width: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(21, 61, 75, 0.09);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(21, 61, 75, 0.14);
}

.public-guide-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.public-guide-photo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #075477;
    background: #dff3f1;
    border: 1px solid #b9deda;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
}

.public-guide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-guide-head h2 {
    margin: 0;
    color: #173a48;
    font-size: 16px;
    line-height: 1.2;
}

.registration-state {
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #08766f;
    font-size: 10px;
    font-weight: 800;
}

.registration-state svg {
    width: 13px;
    height: 13px;
}

.registration-box {
    margin-top: 13px;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    background: #f4f8f9;
    border-radius: 6px;
}

.registration-box span {
    min-width: 0;
}

.registration-box b,
.registration-box em {
    display: block;
    font-style: normal;
}

.registration-box b {
    color: #708087;
    font-size: 8px;
    text-transform: uppercase;
}

.registration-box em {
    margin-top: 2px;
    color: #173a48;
    font-size: 11px;
    font-weight: 800;
}

.public-guide-bio {
    min-height: 42px;
    margin: 11px 0;
    color: #5d6f77;
    font-size: 11px;
    line-height: 1.42;
}

.guide-specialties {
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.guide-specialties span {
    padding: 3px 6px;
    color: #075477;
    background: #e7f3f5;
    border-radius: 4px;
    font-size: 8.5px;
    font-weight: 750;
}

.guide-contact-list {
    margin-top: 12px;
    padding-top: 10px;
    display: grid;
    gap: 7px;
    border-top: 1px solid #e2e9ec;
}

.guide-contact-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    color: #52646c;
    font-size: 10px;
}

.guide-contact-row > svg {
    width: 14px;
    height: 14px;
    color: #0c898b;
}

.guide-contact-row span {
    overflow-wrap: anywhere;
}

.contact-privacy {
    color: #87959a;
    font-size: 8px;
}

.guide-card-actions {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 6px;
}

.guide-card-actions a {
    min-height: 34px;
    padding: 6px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: #075477;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
}

.guide-card-actions svg {
    width: 14px;
    height: 14px;
}

.guides-privacy {
    margin-top: 14px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    color: #25434c;
    background: rgba(238, 249, 248, 0.97);
    border: 1px solid #b9dfdc;
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.guides-privacy > svg {
    width: 22px;
    height: 22px;
    padding: 7px;
    color: #fff;
    background: #0c898b;
    border-radius: 50%;
    box-sizing: content-box;
}

.guides-privacy strong {
    color: #173a48;
    font-size: 13px;
}

.guides-privacy p {
    margin: 3px 0 0;
    font-size: 11px;
    line-height: 1.45;
}

.guide-validation {
    scroll-margin-top: 90px;
    margin-top: 14px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d7e2e6;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.guide-validation > header > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0c898b;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-validation > header svg {
    width: 15px;
    height: 15px;
}

.guide-validation h2 {
    margin: 5px 0 0;
    color: #173a48;
    font-size: 23px;
}

.guide-validation > header p {
    margin: 6px 0 0;
    color: #60727a;
    font-size: 11px;
}

.validation-steps {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.validation-steps span {
    min-height: 36px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #77868c;
    background: #f1f4f5;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 750;
}

.validation-steps b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: #dde5e8;
    border-radius: 50%;
}

.validation-steps span.active {
    color: #075477;
    background: #e4f5f3;
}

.validation-steps span.active b {
    color: #fff;
    background: #0c898b;
}

.validation-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
}

.validation-form.compact {
    grid-template-columns: minmax(220px, 0.5fr) auto auto;
}

.validation-form label,
.profile-fields label {
    display: grid;
    gap: 5px;
}

.validation-form label > span,
.profile-fields label > span {
    color: #3f535c;
    font-size: 10px;
    font-weight: 750;
}

.validation-form input,
.profile-fields input,
.profile-fields textarea {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    color: #24353d;
    background: #fff;
    border: 1px solid #ccd9de;
    border-radius: 5px;
    font: inherit;
    font-size: 12px;
}

.profile-fields textarea {
    min-height: 90px;
    resize: vertical;
}

.validation-form input:focus,
.profile-fields input:focus,
.profile-fields textarea:focus {
    border-color: #0c898b;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(12, 137, 139, 0.12);
}

.validation-form button,
.guide-profile-form > button {
    min-height: 39px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    background: #075477;
    border: 1px solid #075477;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.validation-form button.secondary {
    color: #075477;
    background: #fff;
    border-color: #aac3cd;
}

.validation-form button svg,
.guide-profile-form > button svg {
    width: 15px;
    height: 15px;
}

.validation-form button:disabled,
.guide-profile-form > button:disabled {
    opacity: 0.58;
    cursor: wait;
}

.guide-profile-form {
    display: grid;
    gap: 15px;
}

.profile-registration {
    padding: 11px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: #eef9f8;
    border-radius: 6px;
}

.profile-registration span {
    display: grid;
    gap: 2px;
}

.profile-registration b {
    color: #678087;
    font-size: 8px;
    text-transform: uppercase;
}

.profile-registration strong {
    color: #173a48;
    font-size: 12px;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-fields label.full {
    grid-column: 1 / -1;
}

.profile-fields .privacy-option {
    min-height: 38px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    grid-template-columns: none;
    gap: 8px;
    background: #f7f9fa;
    border: 1px solid #dde5e8;
    border-radius: 5px;
}

.profile-fields .privacy-option input {
    width: 17px;
    min-height: 17px;
    height: 17px;
    padding: 0;
    flex: 0 0 auto;
}

.profile-fields .privacy-option span {
    font-weight: 600;
}

.profile-fields .confirmation {
    background: #fff6eb;
    border-color: #f0c994;
}

.guide-profile-form > button {
    justify-self: start;
}

.validation-status {
    min-height: 20px;
    margin-top: 12px;
    color: #60727a;
    font-size: 11px;
}

.validation-status.success {
    color: #08766f;
}

.validation-status.error {
    color: #b42318;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .guides-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .validation-form,
    .validation-form.compact {
        grid-template-columns: 1fr 1fr;
    }

    .validation-form button:first-of-type {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .guides-stage {
        padding-top: 16px;
        background-size: auto 100vh;
    }

    .guides-wrap {
        width: calc(100% - 20px);
    }

    .guides-intro {
        padding: 21px;
        align-items: flex-start;
        flex-direction: column;
    }

    .guides-intro h1 {
        font-size: 26px;
    }

    .guides-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .guides-list {
        grid-template-columns: 1fr;
    }

    .guide-validation {
        padding: 19px;
    }

    .validation-steps {
        grid-template-columns: 1fr;
    }

    .validation-form,
    .validation-form.compact,
    .profile-fields,
    .profile-registration {
        grid-template-columns: 1fr;
    }

    .validation-form button:first-of-type,
    .profile-fields label.full {
        grid-column: auto;
    }

    .guide-profile-form > button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-guide-card {
        transition: none;
    }

    .guides-loading svg {
        animation: none;
    }
}
