/* =========================================================
   ENCONTREI UM PET
========================================================= */

.found-pet-page {
    min-height: 100vh;
    padding: 72px 0 100px;
    
}


.found-pet-container {
    max-width: 820px;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.found-pet-header {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}


.found-pet-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 7px 14px;

    border-radius: 999px;

    background: rgba(167, 123, 88, .12);

    color: var(--color-primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}


.found-pet-header h1 {
    margin: 0 0 14px;

    color: var(--color-primary);

    font-size: clamp(34px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.05;
}


.found-pet-header > p {
    max-width: 590px;
    margin: 0 auto;

    color: var(--color-text-muted);

    font-size: 17px;
    line-height: 1.65;
}


.found-pet-no-account {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 18px;
    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(255, 255, 255, .72);

    border: 1px solid rgba(0, 0, 0, .06);

    color: var(--color-text);

    font-size: 13px;
    font-weight: 600;
}


.found-pet-no-account::before {
    content: "✓";

    color: var(--color-primary);
    font-weight: 900;
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.found-pet-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* =========================================================
   SEÇÕES
========================================================= */

.found-pet-section {
    padding: 30px;

    background: var(--color-white);

    border: 1px solid rgba(0, 0, 0, .06);

    border-radius: 24px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .045);
}


.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 24px;
}


.section-step {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: 14px;
    font-weight: 800;
}


.section-heading h2 {
    margin: 1px 0 5px;

    color: var(--color-primary);

    font-size: 20px;
    font-weight: 800;
}


.section-heading p {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   FOTO
========================================================= */

.pet-photo-upload {
    position: relative;

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 2px dashed rgba(167, 123, 88, .40);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(167, 123, 88, .05),
            rgba(255, 255, 255, .4)
        );

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.pet-photo-upload:hover {
    border-color: var(--color-primary);

    background:
        rgba(167, 123, 88, .07);
}


.pet-photo-upload:active {
    transform: scale(.995);
}


.pet-photo-upload input[type="file"] {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.pet-photo-placeholder {
    width: 100%;

    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.pet-photo-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: 30px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .10);
}


.pet-photo-placeholder strong {
    display: block;

    width: 100%;

    margin-bottom: 6px;

    color: var(--color-primary);

    font-size: 17px;

    text-align: center;
}


.pet-photo-placeholder > span:last-child {
    display: block;

    width: 100%;

    color: var(--color-text-muted);

    font-size: 13px;

    text-align: center;
}

.pet-photo-preview[hidden] {
    display: none;
}

.pet-photo-preview {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 300px;

    object-fit: cover;
}


/* =========================================================
   EXPLICAÇÃO DA ANÁLISE
========================================================= */

.photo-analysis-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-top: 16px;
    padding: 16px 18px;

    border-radius: 16px;

    background:
        rgba(167, 123, 88, .08);

    border:
        1px solid rgba(167, 123, 88, .12);
}


.photo-analysis-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: 17px;
}


.photo-analysis-info strong {
    display: block;

    margin: 1px 0 4px;

    color: var(--color-primary);

    font-size: 14px;
}


.photo-analysis-info p {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   LOCALIZAÇÃO
========================================================= */

.location-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.location-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 15px 18px;

    border: 1px solid rgba(167, 123, 88, .22);
    border-radius: 14px;

    background:
        rgba(167, 123, 88, .07);

    color: var(--color-primary);

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease;
}


.location-button:hover {
    background:
        rgba(167, 123, 88, .12);

    border-color:
        rgba(167, 123, 88, .35);
}


.location-button:active {
    transform: scale(.99);
}


.location-status {
    padding: 11px 14px;

    border-radius: 12px;

    background: rgba(0, 0, 0, .025);

    color: var(--color-text-muted);

    font-size: 12px;
    text-align: center;
}


/* =========================================================
   SITUAÇÃO
========================================================= */

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}


.choice-card {
    position: relative;
    cursor: pointer;
}


.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.choice-content {
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 22px 18px;

    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;

    background: var(--color-white);

    text-align: center;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
}


.choice-card:hover .choice-content {
    border-color:
        rgba(167, 123, 88, .35);

    transform: translateY(-1px);
}


.choice-card input:checked + .choice-content {
    border-color: var(--color-primary);

    background:
        rgba(167, 123, 88, .08);

    box-shadow:
        0 0 0 2px rgba(167, 123, 88, .08);
}


.choice-icon {
    margin-bottom: 9px;
    font-size: 26px;
}


.choice-content strong {
    margin-bottom: 5px;

    color: var(--color-primary);

    font-size: 15px;
}


.choice-content small {
    max-width: 210px;

    color: var(--color-text-muted);

    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   INPUT CONTATO
========================================================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-group label {
    color: var(--color-text);

    font-size: 13px;
    font-weight: 700;
}


.form-group input {
    width: 100%;

    padding: 15px 16px;

    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 13px;

    background: var(--color-white);

    color: var(--color-text);

    font: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.form-group input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px rgba(167, 123, 88, .10);
}


.form-group input::placeholder {
    color: rgba(0, 0, 0, .35);
}


/* =========================================================
   OPCIONAL
========================================================= */

.optional-section {
    padding-top: 22px;
}


.optional-divider {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    color: var(--color-text-muted);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.optional-divider::before,
.optional-divider::after {
    content: "";

    height: 1px;
    flex: 1;

    background: rgba(0, 0, 0, .08);
}


.optional-divider span {
    padding: 0 14px;
}


.optional-header {
    margin-bottom: 26px;
    text-align: center;
}


.optional-header h2 {
    margin: 0 0 6px;

    color: var(--color-primary);

    font-size: 20px;
}


.optional-header p {
    margin: 0;

    color: var(--color-text-muted);

    font-size: 13px;
}


/* =========================================================
   BADGES
========================================================= */

.badge-group {
    margin: 0 0 24px;
    padding: 0;

    border: 0;
}


.badge-group:last-child {
    margin-bottom: 0;
}


.badge-group legend {
    margin-bottom: 10px;

    color: var(--color-text);

    font-size: 13px;
    font-weight: 700;
}


.badge-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


.select-badge {
    position: relative;

    cursor: pointer;
}


.select-badge input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.select-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 15px;

    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 999px;

    background: var(--color-white);

    color: var(--color-text);

    font-size: 13px;
    font-weight: 600;

    user-select: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


.select-badge:hover span {
    border-color:
        rgba(167, 123, 88, .40);

    transform: translateY(-1px);
}


.select-badge input:checked + span {
    border-color: var(--color-primary);

    background: var(--color-primary);

    color: var(--color-white);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, .08);
}


/* =========================================================
   BOTÃO FINAL
========================================================= */

.found-pet-submit {
    padding-top: 10px;

    text-align: center;
}


.found-pet-submit-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 17px 24px;

    border: 0;
    border-radius: 15px;

    background: var(--color-primary);

    color: var(--color-white);

    font: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .10);

    transition:
        transform .15s ease,
        opacity .2s ease,
        box-shadow .2s ease;
}


.found-pet-submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .13);
}


.found-pet-submit-button:active {
    transform: translateY(0);
}


.found-pet-submit-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}


.found-pet-submit > p {
    max-width: 520px;

    margin: 12px auto 0;

    color: var(--color-text-muted);

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

.location-button:focus-visible,
.found-pet-submit-button:focus-visible,
.choice-card input:focus-visible + .choice-content,
.select-badge input:focus-visible + span,
.pet-photo-upload:focus-within {
    outline: 3px solid rgba(167, 123, 88, .25);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .found-pet-page {
        padding: 48px 0 72px;
    }


    .found-pet-header {
        margin-bottom: 30px;
    }


    .found-pet-section {
        padding: 24px;
        border-radius: 20px;
    }


    .pet-photo-upload {
        min-height: 260px;
    }


    .pet-photo-preview {
        min-height: 260px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .found-pet-page {
        padding: 32px 0 60px;
    }


    .found-pet-container {
        padding-left: 16px;
        padding-right: 16px;
    }


    .found-pet-header {
        margin-bottom: 26px;
    }


    .found-pet-header h1 {
        font-size: 34px;
    }


    .found-pet-header > p {
        font-size: 15px;
        line-height: 1.55;
    }


    .found-pet-no-account {
        margin-top: 14px;
    }


    .found-pet-form {
        gap: 16px;
    }


    .found-pet-section {
        padding: 20px 17px;
        border-radius: 18px;
    }


    .section-heading {
        gap: 12px;
        margin-bottom: 20px;
    }


    .section-step {
        width: 34px;
        height: 34px;

        font-size: 13px;
    }


    .section-heading h2 {
        font-size: 17px;
    }


    .section-heading p {
        font-size: 12px;
    }


    .pet-photo-upload {
        min-height: 220px;
        border-radius: 16px;
    }


    .pet-photo-preview {
        min-height: 220px;
    }


    .pet-photo-icon {
        width: 62px;
        height: 62px;

        font-size: 26px;
    }


    .photo-analysis-info {
        padding: 14px;
    }


    .choice-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    .choice-content {
        flex-direction: row;
        align-items: center;

        gap: 12px;

        padding: 15px;

        text-align: left;
    }


    .choice-icon {
        margin: 0;

        font-size: 24px;
    }


    .choice-content strong {
        margin: 0;
    }


    .choice-content small {
        display: none;
    }


    .badge-options {
        gap: 8px;
    }


    .select-badge span {
        min-height: 38px;

        padding: 8px 13px;

        font-size: 12px;
    }


    .found-pet-submit-button {
        padding: 16px 20px;
    }

}

.pet-photo-placeholder[hidden],
.pet-photo-preview[hidden] {
    display: none;
}

.location-status.is-success {
    font-weight: 700;
}

.location-status.is-error {
    font-weight: 700;
}

.location-status.is-loading {
    opacity: 0.8;
}


/* =========================================================
   SUCESSO
========================================================= */

.found-pet-success[hidden] {
    display: none;
}

.found-pet-success {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 0 48px;
    text-align: center;
}


/* =========================================================
   ÍCONE
========================================================= */

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #e9f7ef;

    color: #218c5a;

    font-size: 36px;
    font-weight: 800;
}


.found-pet-success h1 {
    margin: 0 0 12px;

    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}


.success-intro {
    max-width: 600px;

    margin: 0 auto 28px;

    line-height: 1.65;
    opacity: 0.82;
}


/* =========================================================
   RESUMO
========================================================= */

.success-summary {
    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 22px;

    align-items: center;

    margin: 28px 0;

    padding: 18px;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 20px;

    background: #fff;

    text-align: left;
}


.success-pet-photo {
    display: block;

    width: 150px;
    height: 150px;

    border-radius: 16px;

    object-fit: cover;
}


.success-summary-info {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.success-summary-info strong {
    font-size: 1.1rem;
}


.success-summary-info span {
    line-height: 1.4;
    opacity: 0.8;
}


/* =========================================================
   PRÓXIMOS PASSOS
========================================================= */

.success-next-steps {
    margin: 30px 0;

    padding: 24px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.035);

    text-align: left;
}


.success-next-steps h2 {
    margin: 0 0 18px;

    font-size: 1.25rem;
}


.success-next-steps ol {
    margin: 0;

    padding-left: 22px;
}


.success-next-steps li {
    margin-bottom: 12px;

    line-height: 1.55;
}


.success-next-steps li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ALERTA TELEFONE
========================================================= */

.success-phone-alert {
    display: flex;

    flex-direction: column;

    gap: 6px;

    margin: 28px 0;

    padding: 18px 20px;

    border-radius: 16px;

    background: #fff7df;

    text-align: left;
}


.success-phone-alert strong {
    font-size: 1rem;
}


.success-phone-alert span {
    line-height: 1.5;
    opacity: 0.82;
}


/* =========================================================
   SITUAÇÃO
========================================================= */

.success-situation-message {
    max-width: 600px;

    margin: 24px auto;

    line-height: 1.65;
}


.success-thanks {
    margin: 28px 0;

    font-size: 1.05rem;
    font-weight: 700;

    line-height: 1.5;
}


/* =========================================================
   AÇÕES
========================================================= */

.success-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 30px;
}


.success-actions .btn-primary,
.success-actions .btn-secondary {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 12px;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .found-pet-success {
        padding-top: 20px;
    }


    .success-summary {
        grid-template-columns: 1fr;

        text-align: center;
    }


    .success-pet-photo {
        width: 100%;
        height: 240px;
    }


    .success-summary-info {
        align-items: center;
    }


    .success-next-steps,
    .success-phone-alert {
        text-align: left;
    }


    .success-actions {
        flex-direction: column;
    }


    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }
}


#foundPetFormState[hidden] {
    display: none !important;
}

#foundPetSuccessState[hidden] {
    display: none !important;
}