* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: #ffd6e6;
}

body {
    font-family: Arial, sans-serif;
    color: #5b4960;
    background: #ffd6e6;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    background: #ffd6e6;
}

.form-card {
    width: 100%;
    max-width: 920px;
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(122, 95, 110, 0.10);
    display: flex;
    gap: 20px;
}

.form-head {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    color: #6b5364;
    margin-bottom: 14px;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar-circle {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #fff7fb, #ffeef5);
    box-shadow: inset 0 0 0 4px rgba(255, 200, 220, 0.9);
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-hint {
    font-size: 13px;
    font-weight: 700;
    color: #9a7a8a;
}

.desktop-next-wrap {
    width: 100%;
    margin-top: 18px;
}

.desktop-next-wrap .nav-btn {
    width: 100%;
}

.pet-form {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hidden-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.message.error {
    background: #fff1f5;
    color: #b44f73;
}

.message.success {
    background: #fff5f8;
    color: #8a5c73;
}

.step-panel {
    display: none;
    width: 100%;
}

.step-panel.active {
    display: block;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    width: 100%;
}

.label {
    font-size: 14px;
    font-weight: 700;
    color: #7a5f6e;
}

.input,
.select {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    font-size: 15px;
    color: #5c4a5f;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 200, 220, 0.7);
    display: block;
}

.select {
    padding: 0 44px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23c78aa5' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.note-box {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7fb;
    box-shadow: inset 0 0 0 1px rgba(255, 200, 220, 0.7);
    color: #7a5f6e;
    font-size: 14px;
    line-height: 1.45;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.step-actions-right {
    justify-content: flex-end;
}

.nav-btn,
.submit-btn {
    min-height: 54px;
    border: none;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.nav-btn {
    background: #fff3f8;
    color: #6b5364;
}

.submit-btn {
    background: linear-gradient(135deg, #ff9ec7, #ffc4de);
    color: #5f4758;
}

.mobile-next-wrap {
    display: none;
}

@media (max-width: 700px) {
    .page {
        align-items: flex-start;
    }

    .form-card {
        flex-direction: column;
        padding: 18px 12px;
        border-radius: 22px;
    }

    .form-head {
        width: 100%;
    }

    .avatar-circle {
        width: 130px;
        height: 130px;
    }

    .desktop-next-wrap {
        display: none !important;
    }

    .mobile-next-wrap {
        display: flex;
    }

    .step-actions {
        flex-direction: column;
    }

    .nav-btn,
    .submit-btn {
        width: 100%;
    }
}